Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running ejected project throws "Expo sdk required expo to run"

I created react-native project using create-react-native-app. In this I am importing Permissions module from expo,

import {Permissions} from "expo"; 

Later I realised that expo doesn't fullfill all my requirements (like social sharing etc), so I decided to eject the expo project. I ran following command to do so

"npm run eject"

After detaching, I installed expo as my project dependency to resolve imported Permissions module from expo.

"npm install expo" 

Now when I run "npm run ios", I get this big error in my ios simulator.

enter image description here

Leads here is appreciated.

Thanks!

like image 662
Lokesh Agrawal Avatar asked Feb 28 '18 14:02

Lokesh Agrawal


People also ask

How do I run an existing React Native project with Expo?

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.

Can we use Expo in React Native?

Here are some good reasons to use Expo to build your React Native app. If you are given a project that needs rapid development, and you have picked React Native to build the cross-platform app, Expo is the best fit for you. With Expo, you can build and deploy React Native apps for both iOS and Android with ease.


Video Answer


1 Answers

Once you eject you're now using ExpoKit & no longer using the Expo sdk. The docs can be found here, here & here.

like image 115
MattyK14 Avatar answered Nov 15 '22 03:11

MattyK14