Running ejected project throws “Expo sdk required expo to run”

大城市里の小女人 提交于 2019-12-23 08:58:24

问题


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.

Leads here is appreciated.

Thanks!


回答1:


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



来源:https://stackoverflow.com/questions/49032203/running-ejected-project-throws-expo-sdk-required-expo-to-run

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!