Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native "The expo SDK requires Expo to run. .... this code is not running on Expo."

I am coding with React Native. I don't see that when I first create react-native app for check running. When I implements my code see that. My purpose is generate apk.

enter image description here

  • app.json
  • build.gradle
  • index.js (index.android.json)
  • App package.json

Solved

Result: I solved my problem with npm install. I would like say many month after.

like image 665
Mert Ekinci Avatar asked Jan 18 '18 17:01

Mert Ekinci


People also ask

How do you run Expo in React Native?

Running your React Native applicationInstall the Expo Go app on your iOS or Android phone and connect to the same wireless network as your computer. On Android, use the Expo Go app to scan the QR code from your terminal to open your project. On iOS, use the built-in QR code scanner of the default iOS Camera app.

Is Expo necessary for React Native?

Why Not Expo? The biggest perk of using Expo, is that you don't have to touch native code. But if you are a native mobile developer or have native mobile developers on your team that is working on building a React Native app, do not use Expo.

How do I run an expo code?

To open the app: On your Android device, press "Scan QR Code" on the "Home" tab of the Expo Go app and scan the QR code you see in the terminal. On your iPhone or iPad, open the default Apple "Camera" app and scan the QR code you see in the terminal.

How do you add Expo to existing native app?

Install the expo package and Expo module infrastructure to your native project: npx install-expo-modules . Install the Expo modules you want to use: e.g., to install expo-av, run npx expo-cli install expo-av ; or, if you have expo-cli globally installed (recommended), you can run: expo install expo-av .


1 Answers

If anyone's getting this error after upgrading Expo, try restarting your simulator - that fixed it for me.

like image 162
yndolok Avatar answered Oct 09 '22 03:10

yndolok