ios - react-native undefined 不是对象(评估 RCCManager.setRootController)

标签 ios reactjs react-native redux redux-saga

我正在尝试使用 redux 和 redux-saga 搭配制作一个简单的 react-native 应用程序。不幸的是,当我尝试运行该应用程序时(无论是使用 react-native run-ios 还是通过 Xcode 运行,我都会收到以下错误:

error message: undefined is not an object (evaluating 'RCCManager.setRootController')

奇怪的是,当我将诸如 redux-saga 的 Counter 示例之类的东西移植到 react-native 或其他示例时,我没有遇到这个问题。我想知道是否有人可以帮助指出哪里出了问题?

最佳答案

原来我只需要将更多的库链接在一起。

重新安装这些组件有帮助:

npm install --save react-nativenpm install --save react-native-controllers

紧随其后的 rnpm 链接 解决了这个问题

关于ios - react-native undefined 不是对象(评估 RCCManager.setRootController),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37797276/

相关文章:

reactjs - 我应该使用 redux-form 存储而不是组件状态和 Redux 自定义存储吗?

ios - getInitialLink 不工作,但 onLink 在react-native-firebase v6 中工作

javascript - 尝试在 react-native-web monorepo 架构中导入错误

ios - 根据表格 View 单元格的类型更改行高

iphone - Objective-C : How to improve repetitive method implementations using method forwarding

ios - UIImage 切片导致崩溃

javascript - react : How to render a component twice in a page?

html - React.Js/ typescript : How can I pass colors through props?

iphone - 根据不同的偏好或排序类型重新加载或刷新 MKMapView

javascript - 在 React 中的表上创建可扩展行的简单方法是什么?