从反应原生中删除博览会 [英] 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 中完全删除 expo?我想使用 CRNA,它是没有 expo 的调试工具
How might I remove expo completely from CRNA? I would like to use CRNA and it's debugging tools without expo
推荐答案
您可以通过弹出正在运行的应用程序来做到这一点npm runeject
You can do it by ejecting your app running npm run eject
然后,如果您对 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 runeject 时,它会问一些问题,例如:
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.
这篇关于从反应原生中删除博览会的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!