我最近将RN从v0.19升级到v0.22。
当我运行模拟器时,会弹出此错误。
xcode中显示的错误日志:
2016-03-23 13:54:20.818 [error][tid:com.facebook.React.JavaScript] `ProxyComponent` has no propType for native prop `RCTMap.followUserLocation` of native type `BOOL`
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-03-23 13:54:20.819 [fatal][tid:com.facebook.React.RCTExceptionsManagerQueue] Unhandled JS Exception: `ProxyComponent` has no propType for native prop `RCTMap.followUserLocation` of native type `BOOL`
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-03-23 13:54:20.845 [info][tid:com.facebook.React.JavaScript] Running application "________" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
2016-03-23 13:54:20.847 [error][tid:com.facebook.React.JavaScript] Application ________ has not been registered. This is either due to a require() error during initialization or failure to call AppRegistry.registerComponent.
2016-03-23 13:54:20.848 [fatal][tid:com.facebook.React.RCTExceptionsManagerQueue] Unhandled JS Exception: Application IOS_99GAMERS has not been registered. This is either due to a require() error during initialization or failure to call AppRegistry.registerComponent.
我删除了node_modules并重新安装v0.22。
发生了同样的错误
我一直在寻找解决这个问题的方法(我认为我不是唯一一个)。但我找不到与此问题相关的报告错误。
我目前正在运行: React Native v0.22, xcode ios模拟器, MAC
如果您需要更多细节,我会在几分钟内回复。感谢
答案 0 :(得分:0)
我们遇到了同样的升级。对我们的修复是首先从localhost运行构建(错误发生在使用脱机捆绑包运行构建(引用https://facebook.github.io/react-native/docs/running-on-device-ios.html#using-offline-bundle)