1>查看 RN 的所有历史版本:
npm view react-native versions -json
2>查看 RN 的当前版本:
npm view react-native version -json
3>平台判断执行方法:
const Toolbar = Platform.select({
android: () => renderToolbarAndroid(),
ios: () => renderToolbarIOS()
});
4>分隔线的高度不能写死0.5,否则有些机型会有问题,如下所示:
正确写法如下:
container: {
backgroundColor: 'white',
borderTopWidth:StyleSheet.hairlineWidth,
borderTopColor:'#ddd'
},
5>View固定屏幕底部:
需要将view套在一个父view上,设置style如下:
addArticelBottmViewStyle: {
position: 'absolute',
width: Space.kScreenWidth,
height: ,
bottom: ,
right: // 可不要
}
持续更新哟!!!