gpt4 book ai didi

ios - React Native - 无法在 iOS 中加载包

转载 作者:行者123 更新时间:2023-11-29 11:31:41 25 4
gpt4 key购买 nike

Error Screen on opening of app

我是原生 iOS 应用程序开发人员,但我也想了解最新和流行的技术,所以我选择接触 React Native。现在,当我尝试在 iOS 上运行我的 React Native 创建的应用程序时出现此错误。我输入命令 react-native run-ios 并启动模拟器,然后该应用程序打开但在启动时显示此屏幕。

最佳答案

下面的链接提供了几个解决方案。请尝试一下。

https://github.com/facebook/react-native/issues/21310

for now after react-native init, since a lot of new changes are coming out, this fix worked for me (I got it from reading other issues):
with npm:
npm install --save-dev @babel/core
npm install --save-dev @babel/runtime
or with yarn:
yarn add --dev @babel/core
yarn add --dev @babel/runtime

if on ios you get _this._registerEvents is not a function, after a successful build
do
npm run start --reset-cache
or
react-native start --reset-cache

关于ios - React Native - 无法在 iOS 中加载包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52867900/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com