-
Notifications
You must be signed in to change notification settings - Fork 4.9k
RN 的 helloworld 报错 #3921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
欢迎提交 Issue~ 如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏 如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。 Good luck and happy coding~ |
找到问题了。
|
CC @Pines-Cheng |
UIManager.getViewManagerConfig is not a function 是 expo-av 依赖的问题,已经提了 PR ,但是还没正式发版。 |
1.3.9 的模板进行了重构,有点问题已经修复了,麻烦等发版本吧。 |
谢谢,发现用1.3.8有mobx common的bug (新版本里修好了,现在鱼和熊掌不能兼得) https://github.com/NervJS/taro/blob/master/packages/taro-mobx-common/src/inject.js#L29-L30 |
选择ts可以正常运行 |
@unimodules/react-native-adapter 已经发布3.0.0 了,react-native-unimodules 也发了新版了,taro-rn@1.3.12 里面用的还是~0.4的react-native-unimodules ,需要更新成~0.5 @Pines-Cheng |
|
master已经升级到0.5了,要等下个版本发布。
|
Uh oh!
There was an error while loading. Please reload this page.
问题描述
taro新建的最基础的app,rn运行时会报错。
复现步骤
taro init taroDemo
1.5. init的配置:不用ts,无css预处理,默认模板。
npm run build:rn -- --watch
react-native run-ios --simulator="iPhone X"
期望行为
至少 helloworld 能用
报错信息
Invariant violation, element type is invalid
搜了,网上有几乎完全一样的报错信息,但是如果是类似问题,应该是taro打包造成的问题。
https://blog.csdn.net/niuba123456/article/details/82086513
系统信息
The text was updated successfully, but these errors were encountered: