Sihem Hcine
Sihem Hcine

Reputation: 1129

Not using the Expo fork of react-native

I'm using expo with react native. All is fine, but i get this warning and the app takes a long time in loading :

  [exp] Warning: Not using the Expo fork of react-native. See https://docs.expo.io/.

How can i fix it please.

Upvotes: 34

Views: 15829

Answers (2)

kimomat
kimomat

Reputation: 2399

If you create a react native app with the command from the getting started page: $create-react-native-app AwesomeProject then the package.json file has the following dependencies:

"dependencies": {
  "expo": "^20.0.0",
  "react": "16.0.0-alpha.12",
  "react-native": "^0.47.0"
}

If you create an app directly in the Expo XDE, you will see in the package.json, they use a fork of react-native:

"dependencies": {
  "expo": "^20.0.0",
  "react": "16.0.0-alpha.12",
  "react-native": "https://github.com/expo/react-native/archive/sdk-20.0.0.tar.gz"
},

Changing the react-native module path to https://github.com/expo/react-native/archive/sdk-20.0.0.tar.gz and running npm install will fix the problem.

Upvotes: 36

Hugo
Hugo

Reputation: 2204

That's how I fixed it:

  1. I updated my "react-native" dependency to the latest one available:

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

  1. I removed all dependency that I had installed by mistake in my previous expo app that actually required react-native link using the npm uninstall --save command:

react-native-image-to-base64, react-native-cloudinary

  1. Then I also had to remove them from the General > Linked Frameworks and Libraries

Now it works! I'm having issues with the Facebook Login now but at least it doesn't crash my app.

Good luck to you.

Upvotes: 2

Related Questions