Once you eject expo, you can’t inject it back. So, all the great development experience that you had with expo is gone now.

What is Expo?

Expo is a framework/ platform for React applications providing a set of tools built around React Native and native platforms. It helps developers build, deploy, develop and quickly iterate on iOS, Android, and web apps from the same JavaScript/TypeScript codebase.

Use case of expo eject

Are you planning to eject expo from your react-native app? If yes, I hope the following are the use cases that you’d have.

1- You want to add an “NPM” package to your project which requires a reactnative link. And as a rule of thumb, if the documentation for a third-party package states that you need to run the command react-native link as part of the setup process, then this package can’t be used with expo.

2- You are more of a native (Java/Kotlin/Swift/Objective C) person, and want to integrate a native module into your Reactnative app but couldn’t find a way to do it in the expo, so want to get rid of it?

3- You want to add an awesome push notification library like OneSignal in your app which expo doesn’t support.

Are there some other reasons? If yes, write in the comment box below, and I’ll personally look and reply.

Why not Expo?

Before ejecting Expo, let’s have a look at the drawbacks that you’d face:

Once you eject expo, you can’t inject it back. So, all the great development experience that you had with expo is gone now. Typically developing a feature in a non-expo takes almost 3x the time as compared to expo.

If the developer chooses to eject from Expo, these great development features of the Expo are lost and it takes almost 3x the time as compared to the expo to develop those features in the non-expo state.


Is expo good for react native?

Is expo good?

Here are some Advantages Of Using Expo

Read More:   Mega app development: your roadmap to the rising trend 2022

Expo is kind of an extension to ReactNative that offers a bunch of components and libraries already included to facilitate the development of mobile apps with React Native. Let’s see a few of them:

  • Fast and simple project installation.
  • Opens a convenient utility Expo CLI in a browser and facilitates ‘app status’ checking on the device it runs on, scan QR code, send the link via email to open the app in Expo Client, or switching the production/ development mode and publishing your app on expo server.
  • Develop from Windows/macOS or whatever you just only need Nodejs and an internet connection.
  • Library linking with reactnative links not necessary as everything is covered by the expo.
  • Expo client is an app that is easily installed from the Google Play Store or Apple Store on your phone. It allows the opening of projects without build via XCode or Android Studio during the development process. With Expo Client, the apps can be sent to others for review which is greatly required when testing without any need of creating APK or IPA files.
  • The app can be updated over the air without repeated deployment on Google Play Store or Apple Store. When users open the app, it will automatically update the app by pulling the recent js bundle published on the expo server.
  • Automatic management of certificates and app signatures.
  •  Easy to use and gives intermediate results fast.
  •  Test directly on the device for both iOS and Android.
  •  One can develop apps for ios without macOS with ios device and test them with Expo client
  • Expo SDK offers a collection of ready solutions, such as working with the device accelerometer, camera, notifications, geolocation, etc.

The expo team regularly updates the SDK with new solutions which is very useful for the user.

Let’s look into each use case of “expo eject” one by one:

1. Want to add an “NPM” package that requires linking: The thing that you should ask yourselves is, are there some other packages which don’t require linking and still solves the purpose? Most of the time, you’d find that such a solution already exists. The Expo community has already included many useful packages in the build and the users are just not aware of it. Be it SVGs, animation, or video, most of the packages are already in the expo. If you couldn’t find the replacement package in expo, then there is no way apart from expo eject.

2. You want to add your written custom native module: When writing your reactnative bridge and of which the ‘NPM’ package doesn’t exist yet, for such a scenario the Expo eject is the only way and it has to be done.

Read More:   AngularJS frequently asked questions

3. Third-party notification library like OneSignal: Before integrating any awesome push notification service, you’d first explore the push notification service of expo. Although, Expo’s push notification service isn’t great but it solves the purpose in most of the cases. If you don’t like it, and still want to integrate OneSignal or other notification services, then expo eject is the way out.

So far we have seen that in some of the cases, expo eject has to be done. And expo itself says that.

But wait, what if I tell you that there is a way in which you can add custom native modules in expo without ejecting it.
Well, my above statement is not totally true. You have to eject it, but you won’t lose any of the benefits that you were getting with expo. You can still use the modules provided by expo, you can still have the same development flow, you don’t need to re-build native modules over and over again, you don’t need to worry about pod files, swift, kotlin etc.

We hope this tutorial has helped you. It’s not as difficult as you think. If you want more articles like this, visit our Mobile Apps Development blog category.

But if you want to hire an offshore IT team to assist you with mobile app development, check out our mobile app service page, and hit FREE PROPOSAL to contact us. We’re happy to assist you in any way we can.

4.9/5 - (50 votes)
As a Senior Tech Enthusiast, I bring a decade of experience to the realm of tech writing, blending deep industry knowledge with a passion for storytelling. With expertise in software development to emerging tech trends like AI and IoT—my articles not only inform but also inspire. My journey in tech writing has been marked by a commitment to accuracy, clarity, and engaging storytelling, making me a trusted voice in the tech community.

Let’s create the next big thing together!

Coming together is a beginning. Keeping together is progress. Working together is success.

Let’s talk

Get a custom Proposal

Please fill in your information and your need to get a suitable solution.

    You need to enter your email to download


      Success. Downloading...