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.
You don't need to know Native Mobile codingExpo handles all the native code under the hood, and this is not available to the developers who are using it. Whereas, if you build React Native apps from scratch without Expo, based on what I have seen you will need to use a tiny bit of your native mobile coding skills.
React Native recommends using the React Native CLI if you are already familiar with Mobile App Development. However, if you are new to mobile app development and want to get the project quickly set up, Expo CLI is recommended.
Ejecting your React Native expo project You can eject expo running the command npm run eject on the console. Make sure you'll choose the option React Native: I'd like a regular React Native project and then rename your project accordingly.
Note: this post was originally published on February 28, 2019, and subsequently updated on March 14, 2019 to reflect improvements to the workflow. Starting today, you can use as little or as much of the Expo SDK as you like in any React Native app.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With