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

`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

    View.js:509
loadModuleImplementation
    require.js:122

    AppContainer.js:20
loadModuleImplementation
    require.js:122

    renderApplication.js:15
loadModuleImplementation
    require.js:122

    AppRegistry.js:19
loadModuleImplementation
    require.js:122

    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 [email protected]



你可能感兴趣的:(React-Native,IOS学习,shell)