如何将 android 现有应用程序转换为 react-native android [英] How to convert android existing app to react-native android

查看:59
本文介绍了如何将 android 现有应用程序转换为 react-native android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个带有代码的 android 应用程序,我想转换为响应本机 android.这是否可以将现有的 android 应用程序转换为原生响应?

I have developed an android app with code, i want to convert to react native android. is this possible to convert an existing android app to react native?

推荐答案

React Native 是 FB 提供的基于 JS 的层级编程.如果要将现有的 android 应用程序转换为 RN,则需要使用 node 在 RN 中创建一个单独的项目,并且必须将您的 Activity 或 Fragment 视图设计更改为 RN Js 组件,并且对于功能,您必须创建一个桥接模块以便进行通信将建立在 RN JS 组件和 Android 原生代码之间.

React Native is a JS based layer programming provided by FB. If you want to convert the existing android app into RN then you need to create a separate project in RN using node and have to change your Activity or Fragment views design into RN Js components and for functionality you have to create a bridge module so that communication would be establish in between RN JS Components and Android native code.

有一个库可以使用库react native brownfield,这个库将有助于将你的原生应用与 React Native 连接起来.

There is library that would help to make from native to react native using library react native brownfield, this library will help to make bridging your native app with react native.

这篇关于如何将 android 现有应用程序转换为 react-native android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆