Turn Expo Bare into Managed project

Viewed 710

We started this project as a Bare Expo project because we initially required native functionalities that the Managed workflow did not support.

We've since removed these features and would now like to migrate to the much simpler Bare workflow.

We've removed the ios and android folders and updated our app.json file. According to the Expo source code this should do the trick.

However when we attempt to build our project using expo build, Expo still thinks we're a Bare project and it throws an error because it can't find /android/app/src/main/AndroidManifest.xml.

We've built the app in the past using Expo, so perhaps our workflow is somewhere registered on the Expo servers? Is there any way to switch to the Managed workflow?

We've tried expo init-ing a new project and move over the source code but this did not do the trick.

Any help would be much appreciated.

1 Answers

Might be a bit late. Just went through this, and if you're using the VSCode add-ons, a lot of the issues I ran into was from how the plug-ins detected managed vs bare. Ultimately, it came down to the fact that in package.json, my dependency for react-native was pointed to a version eg. "^0.63.1" when the expo managed workflow they are pointed to the GIT URL:

"react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz"

Related