React Native 报错记录

  1. Module RCTEventEmitter is not a registered callable module (calling receiveTouches)
    使用es5方式创建组件,最新版本已经废弃会报错

  2. Module AppRegistry is not a registered callable module (calling runApplication)

    Cannot read property 'Direction' of undefined
    安装react-navigation时,在React Native 0.60+版本,要在ios上完成链接,请确保已安装cocoapods,然后运行:

cd ios
pod install
cd ..
  1. Unrecognized font family 'Ionicons'
cd ios
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod update
cd ..

推荐阅读更多精彩内容