`View` has no propType for native prop `RCTView.flexBasis` of native type `CGFloat

6 篇文章 0 订阅
1 篇文章 0 订阅

`View` has no propType for native prop `RCTView.flexBasis` 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.

verifyPropTypes
    verifyPropTypes.js:58
requireNativeComponent
    requireNativeComponent.js:90
<unknown>
    View.js:509
loadModuleImplementation
    require.js:122
<unknown>
    AppContainer.js:20
loadModuleImplementation
    require.js:122
<unknown>
    renderApplication.js:15
loadModuleImplementation
    require.js:122
<unknown>
    AppRegistry.js:19
loadModuleImplementation
    require.js:122
<unknown>
    index.ios.js:59
loadModuleImplementation
    require.js:122
guardedLoadModule
    require.js:58
global code
    require-0.js:1


最近升级了iOS工程中的React版本,在调试的时候遇到了这个错误,从错误看出是native代码和js代码的verson不同步导致,因此解决办法如下

解决办法:

1、首先查看ios工程中RN的版本,发现是0.36

2、查看服务器的版本0.39,发现版本不统一

3、对服务器RN做降级处理执行如下命令

npm install --save react-native@0.36.1



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值