What is the quickest way to convert a React app to React Native?

后端 未结 6 1643
死守一世寂寞
死守一世寂寞 2020-12-08 00:06

This may be a naive question, but I couldn\'t find too much information on this topic. I have a fully functional react-redux application and I would now like to port it to

6条回答
  •  攒了一身酷
    2020-12-08 00:52

    You cannot just use your whole code into the react native application. First and foremost, you have to follow the react native architecture and then develop your UI using react native components. https://facebook.github.io/react-native/docs/getting-started.html You'll get most of the help here.

    There is another option also, you can just create a new react-native project and use webview in it and display your whole website there. https://facebook.github.io/react-native/docs/webview.html

提交回复
热议问题