Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_RCTSRWebSocket", referenced from:
objc-class-ref in libReact.a(RCTInspectorPackagerConnection.o)
"_OBJC_CLASS_$_RCTReconnectingWebSocket", referenced from:
objc-class-ref in libReact.a(RCTPackagerConnection.o)
ld: symbol(s) not found for architecture arm64
项目配置
系统环境 mac os sierra 10.12.6
模拟器 ios/11 android 4.4/7.0
问题按照关键字罗列
"_OBJCCLASS$_RCTSRWebSocket",
问题详情
产生原因:
通过xcode运行项目的时候进行了非法重启,导致项目损坏
解决办法
重启添加RCTSRWebSocket, 把react-native/Libraries/WebSocket 的xcodeproj 重新拉到xcode中 在xode 项目下的 targets 项目Build Phases 中的LinkBanary with Libraries 中移除 RCTSRWebSocket 并重新添加
移除react-native-vector-icons依赖
react-native-swiper 安卓不显示的问题
解决办法
通过给图片以及容器按照屏幕设置高度即可
react-native 运行白屏
问题详情
解决办法
native-echarts 相关问题
安装失败导致红屏
解决:移除native-echarts,手动clone项目然后再移要项目中
android无法显示的问题
react-navigation
集成redux
集成redux支持android物理饭返回键
custom navigation bar
https://github.com/react-community/react-navigation/issues/702