正在运行弹出的项目会抛出"Expo SDK要运行需要的EXPO". [英] Running ejected project throws "Expo sdk required expo to run"

查看:68
本文介绍了正在运行弹出的项目会抛出"Expo SDK要运行需要的EXPO".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用create-react-native-app创建了react-native项目.在此,我将从expp

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

import {Permissions} from "expo"; 

后来,我意识到EXPO不能满足我的所有要求(例如社交共享等),因此我决定退出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"

分离后,我将expo安装为项目依赖项,以解决从expo导入的Permissions模块的问题.

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

"npm install expo" 

现在,当我运行"npm run ios"时,我在ios模拟器中遇到了这个大错误.

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

这里的铅被赞赏.

谢谢!

推荐答案

退出后,您现在就使用ExpoKit&不再使用Expo SDK.可以在此处此处.

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

这篇关于正在运行弹出的项目会抛出"Expo SDK要运行需要的EXPO".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆