React-Native Eject Not Working for React-Native 0.60.0

React-Native Eject Not Working for React-Native 0.60.0

Is react-native eject is not working anymore ? is it completely removed from the react-native? I am using react-native version 0.60.0.

I can't even find it in the react-native help.

Please check the image for more reference:

6 Answers

Same here. In this moment, have a brand new backup of your project and then copy the android and ios folder, is the better way to regenerate those folders... unfortunately

UPDATE

react-native upgrade --legacy true

Firstly you would need to install react-native-eject then you can run react-native eject. Simply do these:

npm i react-native-eject

or

yarn add react-native-eject

then run:

react-native eject

Yes, the eject command was removed from react-native recently (March 28, 2019).

React Native had this command in the previous version. Running this command will check if the ios and android directories exist and then rebuild whichever one is missing.

react-native eject <=0.59.0

Now you should use the react-native upgrade --legacy true command to back up your android folders or ios as the case may be as this command will replace your files.

react-native eject has been deprecated use npx react-native eject its working

0

eject isn't part of react-native, but rather expo. To eject, you can run:

npm run eject

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

David Miller
Author

David Miller

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.