After upgrading to RN 0.30 I started seeing the error shown below even when building the simplest possible app:
react-native init AwesomeProject
react-native run-ios
BlurView
, VibrancyView
and RNSearchBar
are included in the warning messages despite the project not using them. Console & error:
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.
The reason for this error was that another instance of React packager (still on 0.28
) was running in the background at the time after I updated to 0.30
.
Restarting React packager solved the problem.
I restarted the react native by react-native start and it solved my issue.
I was getting this same error message, although in my case it was caused by incompatibilities between dependencies.
What I did to solve it was:
create-react-native-app foo
. This should install compatible dependencies.package.json
and update the versions of the dependencies to match those in foo's package.json
.sdkVersion
in the file app.json
and update if necessary.node_modules
and reinstall all the packages.I hope it helps!
In my case react-server and react-project were mismatched. I was running the wrong project with the wrong Node server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With