Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove expo from react native

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

like image 847
Youssef Ell Avatar asked Feb 19 '18 19:02

Youssef Ell


People also ask

How do I delete Expo modules?

To remove a package from your node_modules directory, on the command line, use the uninstall command. Include the scope of the package is scoped. It is really strange but command "npm uninstall package-name" doesn't delete packege from folder and doesn't delete it from package. json.

What is React Native eject?

Ejection essentially allows you to take complete control of the build process. It will allow us to add these native libraries from XCode and Android Studio.

What does it mean to eject from Expo?

Expo is a toolchain that allows you to quickly get a React Native app up and running without having to use native code in Xcode or Android Studio. The Expo Eject Step is necessary to eject your app to install any missing native dependencies.


2 Answers

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.

like image 154
Smiles4U Avatar answered Nov 10 '22 10:11

Smiles4U


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:

enter image description here

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

enter image description here

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

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

enter image description here

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

like image 7
Yanci Nerio Avatar answered Nov 10 '22 10:11

Yanci Nerio