Remove expo from react native

瘦欲@ 提交于 2019-12-10 03:09:23

问题


I've had so many troubles with the tool, I seriously have been debugging expo morethan the app itself.

How might I remove expo completely from CRNA? I would like to use CRNA and it's debugging tools without expo


回答1:


You can do it by ejecting your app running npm run eject

Then, if you have any reference to expo just remove all of them.

your app modules before being ejected looks like this below:

When you run npm run eject it will ask some questions like:

be sure to select React Native: I'd like a regular react Native project

And your folders will now look like this (no expo):

Just be careful because ejecting is a permanent process, you should make a backup of your files.




回答2:


Once you eject from Expo, though, and if you're using a Windows computer, you'll only be able to develop for Android, I believe. You'll still need a Mac to work in React Native without Expo. I'm a beginner but just wanted to highlight this difficulty faced by Windows users when ejecting from Expo.



来源:https://stackoverflow.com/questions/48873070/remove-expo-from-react-native

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