Problem in Ejecting React Native Project (npm run eject issue) in version 0.57

Problem in Ejecting React Native Project (npm run eject issue) in version 0.57

Hey, Guys here is the solution to the problem commonly faced by many of React Native developers nowadays that is the problem in ejecting the React Native Project after the React Native version 0.57 launch.

The problem in ejecting the React Native Project:

The problem happens when we create a project using create-react-native-app and try to eject the project using npm run eject. It shows the error: cannot find symbol

and error: MainActivity is not abstract and does not override abstract method getPackages() in ReactActivity


To solve this problem we have you have to make some changes to your project and the changes are as following:

Step 1: 

replace in package.json


Step 2:

Make an index.js file in your project directory

Add the following code in index.js

Step 3:

Now remove node module folder and install again using

Step 4:

That is enough to solve the problem now you can run your project again using

If you have any doubt or you want to share something about the topic you can comment below or contact us here. There will be more posts coming soon. Stay tuned!

Hope you liked it. 🙂

How useful was this post?

Click on a star to rate us!

Average rating / 5. Vote count:

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

You have successfully subscribed to the newsletter

There was an error while trying to send your request. Please try again.

About React will use the information you provide on this form to be in touch with you and to provide updates and marketing.