Converting Existing React Native Projects to Expo

大城市里の小女人 提交于 2019-11-29 00:40:30

问题


I'm considering building mobile apps in React Native using Expo and I noticed under FAQ that existing React Native projects can be converted to Expo.

What exactly are we converting? I really like staying as pure and clean as possible without too many abstraction layers in the middle which can obscure my ability to understand what's really happening for things to work in the app.

I'd appreciate a bit more clarification about what's really happening in the conversion process and what Expo is adding to the existing project.


回答1:


This topic is covered in the Expo XDE readme.

However, we didn't get it working and decided to port our code into the default Expo app (Edit: after hitting a lot of issues porting our app to Expo, we decided to revert to vanilla RN).

There are at least a few required steps missing from the documentation:

  • Create exp.json file
  • Update React and React Native libraries to the versions required by Exponent

    "react": "16.0.0-alpha.6", "react-native": "https://github.com/expo/react-native/archive/sdk-16.0.0.tar.gz",

We summarized on our blog why we gave up on Expo in its current form.



来源:https://stackoverflow.com/questions/43833545/converting-existing-react-native-projects-to-expo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!