Sau khi nâng cấp lên RN 0,30 tôi bắt đầu nhìn thấy những lỗi hiển thị dưới đây ngay cả khi xây dựng đơn giản nhất có thể app:Phản ứng Quê quán: Không propType cho prop mẹ đẻ RCTView.maxHeight
react-native init AwesomeProject
react-native run-ios
- Các kỳ lạ là các thành phần
BlurView
,VibrancyView
vàRNSearchBar
được bao gồm trong các thông điệp cảnh báo mặc dù dự án không sử dụng chúng. - Biên dịch lại/dọn dẹp dự án không khắc phục được sự cố.
điều khiển & lỗi:
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.
Điều này cho thấy rằng mã js và mã gốc của bạn không đồng bộ. Bạn đã thử "nâng cấp bản địa phản ứng" chưa? –
Thử cách này không hiệu quả, tất cả các gói của tôi đều được cập nhật, tôi đang sử dụng React Native v. '0.30' –