Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 374
Sihem Hcine Avatar asked Jul 19 '17 10:07

Sihem Hcine


People also ask

Is Expo necessary for React Native?

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.

Is it better to use Expo or React Native?

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.

How do I get rid of React Native Expo?

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.

Can I use Expo API in React Native?

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.


1 Answers

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.

like image 74
kimomat Avatar answered Sep 21 '22 14:09

kimomat