gpt4 book ai didi

javascript - react native : No propType for native prop RCTView. 最大高度

转载 作者:IT王子 更新时间:2023-10-29 03:10:51 31 4
gpt4 key购买 nike

升级到 RN 0.30 后,即使构建最简单的可能,我也开始看到下面显示的错误 app :

react-native init AwesomeProject
react-native run-ios
  • 最奇怪的是组件 BlurViewVibrancyViewRNSearchBar 包含在警告消息中,尽管项目没有使用它们。
  • 重新编译/清理项目并不能解决问题。

控制台和错误:

2016-07-22 08:48:02.985 [warn][tid:main][RCTEventEmitter.m:52] Sending `websocketFailed` with no listeners registered.
2016-07-22 08:48:03.031 [warn][tid:com.facebook.react.JavaScript] Warning: Native component for "BlurView" does not exist
2016-07-22 08:48:03.032 [warn][tid:com.facebook.react.JavaScript] Warning: Native component for "VibrancyView" does not exist
2016-07-22 08:48:03.033 [warn][tid:com.facebook.react.JavaScript] Warning: Native component for "RNSearchBar" does not exist
2016-07-22 08:48:03.040 [error][tid:com.facebook.react.JavaScript] `Constructor` has no propType for native prop `RCTView.maxHeight` of native type `CGFloat`
If you haven't changed this prop yourself, this usually means that your versions of the native code and JavaScript code are out of sync. Updating both should make this error go away.
2016-07-22 08:48:03.043 [fatal][tid:com.facebook.react.RCTExceptionsManagerQueue] Unhandled JS Exception: `Constructor` has no propType for native prop `RCTView.maxHeight` of native type `CGFloat`
If you haven't changed this prop yourself, this usually means that your versions of the native code and JavaScript code are out of sync. Updating both should make this error go away.
2016-07-22 08:48:03.102 [error][tid:com.facebook.react.JavaScript] Module AppRegistry is not a registered callable module.
2016-07-22 08:48:03.104 [fatal][tid:com.facebook.react.RCTExceptionsManagerQueue] Unhandled JS Exception: Module AppRegistry is not a registered callable module.

screenshot

最佳答案

这个错误的原因是在我更新到0.30之后,另一个React packager实例(仍在0.28)正在后台运行。

重启 React packager 解决了问题。

关于javascript - react native : No propType for native prop RCTView. 最大高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38520003/

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