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

后端 未结 6 1645
死守一世寂寞
死守一世寂寞 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:29

    They're usually pretty separate, partly because your render target is different (i.e. no divs) and partly because of things like window not being available. It's possible to reuse code between web and native apps, but only if you're very careful about it.

    From the react native release blog post:

    It's worth noting that we're not chasing “write once, run anywhere.” Different platforms have different looks, feels, and capabilities, and as such, we should still be developing discrete apps for each platform

提交回复
热议问题