30-days-of-react-native
30-days-of-react-native copied to clipboard
undefined is not an object(evaluating 'ViewPropTypes.styles')
遇到第一个坑:
解决方法: node_modules\react-native-scrollable-tab-view\DefaultTabBar,ScrollableTabBar,index里面的ViewPropTypes改成了View.propTypes
遇到第二个坑:
解决方法: 将 Icon.TabBarItem 换成 TabBarIOS.Item,里面一些属性修改iconName换成icon,selectedIconName换成selectedIcon。
另外一个错误rctcamerarollmanager.getphotos,参考这个: https://stackoverflow.com/questions/33690208/undefined-ia-not-an-objectevaluating-rctcamerarollmanager-getphotos
@JackSteven 这些错误是怎么导致的? 可以理解为 react-native-scrollable-tab-view
自身的 bug 么?
这个demo我都没运行起来过
@PengJuWang 升级下版本:
npm install [email protected]
第一个坑遇到过,然后用react-native-git-upgrade 进行升级,出现很多冲突,更新修改后,能编译通过并安装。但是闪退,闪退,闪退!求助,怎么破啊
我按照第一个修改了,可还是有问题这个 问题
我的也是还报style的错,咋搞?
第一个修改错误是有问题的 出现了另一个错误
https://github.com/skv-headless/react-native-scrollable-tab-view/issues/643
根据这个react-native插件库里的讨论。
downgrade react-native-scrollable-tab-view. Latest versions not compatible with react-native older than 0.44
- 将依赖中的react-native-scrollable-tab-view版本指定为0.6.0
- 重新安装该依赖项
接着我发现了Unrecognized font family ionicons的报错
这个是因为没有link到字体库导致的
react-native link react-native-vector-icons
当执行完后,如果使用的xcode,那么会得到 redefinition of rctloglevel 的报错
- npm uninstall react-native-vector-icons
- 并把package.json中的"react-native-vector-icons": "XXX",删掉
- npm install react-native-vector-icons
程序就可以完美运行了

summary of how I solved this problem:
- run npm install [email protected]
- run react-native link react-native-vector-icons
- run npm uninstall react-native-vector-icons
- delete "react-native-vector-icons": "XXX"" in file "package.json"
- run npm install react-native-vector-icons
thanks. @windyrain @CodingMonkeyzh
summary of how I solved:
-
run npm uninstall react-native-scrollable-tab-view
-
run npm install [email protected]
-
run npm uninstall react-native-vector-icons
-
delete ( not necessary, it will be deleted automatically) "react-native-vector-icons": "XXX"" in file "package.json"
-
run npm install react-native-vector-icons
-
run react-native link react-native-vector-icons
-
run react-native run-ios
Thanks @ericoda @windyrain
楼上大神正解,thx
楼上正解完美.....多谢
楼上正解,thx
@MilkBiscuit problem soved, thanks
@MilkBiscuit Thanks problem soved
really help, thanks