gpt4 book ai didi

react-native - 不变违规 : requireNativeComponent: "RNSScreen" was not found in the UIManager

转载 作者:行者123 更新时间:2023-12-04 11:07:34 24 4
gpt4 key购买 nike

尽管我已经安装了所有相关的软件包并遵循了 react-navigation 指南( https://reactnavigation.org/docs/getting-started#installation ),但我还是收到了 RNSScreen 错误,但没有任何效果。
enter image description here
enter image description here
enter image description here

最佳答案

在实现导航时遇到了同样的问题。运行以下命令

npm install @react-navigation/native
React Navigation 由一些核心实用程序组成,然后导航器使用这些实用程序在您的应用程序中创建导航结构。
在您的项目目录中,运行:
npm install react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view
这将安装这些库的兼容版本。
如果您使用的是 Mac 并针对 iOS 进行开发,则需要安装 Pod 以完成链接。
npx pod-install ios
现在运行
react-native run-ios

关于react-native - 不变违规 : requireNativeComponent: "RNSScreen" was not found in the UIManager,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66921263/

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