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: // 可不要
}

持续更新哟!!!

最新文章

  1. 虚拟机linux上网问题
  2. POJ 2418 字典树
  3. Struts2(十一)OGNL标签三与Struts2标签
  4. html5调用手机摄像头,实现拍照上传功能
  5. 如何在WPF应用程序中使用视频处理控件TVideoGrabber
  6. iOS多线程 GCD
  7. 计算CRC校验值(CRC16和CRC32)(网络传输检验)
  8. Codevs No.3147 矩阵乘法2
  9. dataGuard主备库角色切换
  10. CSS background-repeat 属性
  11. mysqli 启动出错
  12. ASP.NET Core 中使用EF Core 将实体映射到数据库表的方法(SQL Server)
  13. maven加载本地jar包到repository
  14. BZOJ3526[Poi2014]Card——线段树合并
  15. 剑指offer(31)1~n整数中1出现的次数
  16. Servlet组件之 jsp 技术
  17. Nhibernate + MySQL 类型映射
  18. Finding the source of signals on Linux with strace, auditd, or systemtap
  19. 从客户端(SeekingJobs="<B>·</B> 物流规划,<B>·</...")中检测到有潜在危险的 Request.Form 值。
  20. 从零开始搭建linux下laravel 5.5所需环境(二)

热门文章

  1. 解决Python中出现的问题: “You are using pip version 9.0.1, however version 19.2.3 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.”
  2. P2057 善意的投票 最小割理解
  3. python模块 加密服务hashlib,hmac
  4. P1052 过河 题解
  5. HTML5新特性——1 HTML5音频
  6. 记录一下UILabel加载富文本 iOS
  7. 接口调用实现类&& 为什么Autowired定义在接口上
  8. CF311B Cats Transport(斜率优化)
  9. HDU 6042 - Journey with Knapsack | 2017 Multi-University Training Contest 1
  10. 【线性代数】3-6:四个子空间的维度(Dimensions of the Four Subspaces)