利用脚手架开发一套react-native(ios & android)项目(让你开发网页dva.js 一套,牛奶香浓浓,丝般感受 )
- dva.js
- code-push
- react-navigation
- native-base
- react-native-orientation-locker
https://www.pgyer.com/dagouzhi2temp
npm i -g yunle-cli
yunle init test_rn
? 请选择使用的模板
umi
❯ RN
taro
electron
gatsby
next
component
cd test_rn && yarn
npm run start:ios
npm run start:android
》 https://nativebase.io/customizer/#
开源github 欢迎star ⭐⭐⭐ 感谢感谢!!!
修改 node_modules/native-base/dist/src/basic/Tabs/index.js
替换
_this.scrollView.scrollTo({x:_this.props.initialPage*_this.state.containerWidth,animated:false});
if (_this.scrollView && _this.scrollView.scrollTo) { _this.scrollView.scrollTo({x:_this.props.initialPage*_this.state.containerWidth,animated:false}); }