从React Native移除EXPO [英] Remove expo from react native
问题描述
我在使用该工具时遇到了很多麻烦,我认真地调试了expo,而不是应用程序本身.
I've had so many troubles with the tool, I seriously have been debugging expo morethan the app itself.
我如何才能完全从CRNA移除展览会?我想使用CRNA及其调试工具,而无需博览会
How might I remove expo completely from CRNA? I would like to use CRNA and it's debugging tools without expo
推荐答案
您可以通过弹出运行 npm run弹出
然后,如果您对expo有任何参考,只需将它们全部删除.
Then, if you have any reference to expo just remove all of them.
您的应用模块在弹出之前如下所示:
your app modules before being ejected looks like this below:
当您运行 npm run弹出时,它将询问一些问题,例如:
When you run npm run eject it will ask some questions like:
确保选择React Native:我想要一个常规的React Native项目
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.
这篇关于从React Native移除EXPO的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!