34

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.

2
  • How did you setup your project? You should also post your package.json. There's not enough information in your question as-is to help you. Commented Jul 19, 2017 at 13:44
  • I cloned GeekyAnts/native-base-react-navigation-stack-navigator
    – Pete Alvin
    Commented Mar 9, 2018 at 14:43

2 Answers 2

36

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.

2
2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.