React-Native:Module AppRegistry 不是注册的可调用模块 [英] React-Native: Module AppRegistry is not a registered callable module

查看:33
本文介绍了React-Native:Module AppRegistry 不是注册的可调用模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试获得

解决方案

我刚刚升级到 react-native 0.18.1 今天,0.19.0-rc 遇到了一些对等依赖问题 预发布版本.

回到你的问题,我所做的是

  1. cd android
  2. sudo ./gradlew clean(有关清洁工作原理的更多信息 此处)

然后回到工作目录并运行react-native run-android

升级后你也应该重启你的 npm.

希望这对你有用.

I'm currently trying to get the ES6 react-native-webpack-server running on an Android emulator. The difference is I've upgraded my package.json and build.grade to use react 0.18.0, and am getting this error on boot. As far as I'm aware AppRegistry is imported correctly. Even if I were to comment out the code this error still comes up. This does work on iOS without issue.

What am I doing wrong?

EDIT: After trying other boilerplates that do support 0.18.0, I'm still coming across the same issue.

解决方案

i just upgraded to react-native 0.18.1 today tough having some peer dependencies issues with 0.19.0-rc pre-release version.

Back to your question, what I did was

  1. cd android
  2. sudo ./gradlew clean (more information about how clean works here)

then back to the working directory and run react-native run-android

you should restart your npm too after that upgrade.

hope this works for you.

这篇关于React-Native:Module AppRegistry 不是注册的可调用模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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