react native 样式与布局

https://blog.csdn.net/isaisai/article/details/49801701?_t_t_t=0.5862080130443164  react native Text 上无法指定borderWidth 等一系列属性, 解决方法,在Text 外面添加一个View   ,在View 上面设置borderWidth 等一系列属性

https://www.jianshu.com/p/688b9108a922 crazyBoy老师的总结

https://www.jianshu.com/p/dbd634a947da View的一些属性

有时候我们在不同地方定义了样式,也有可能放到props中传递,所以写成数组的形式:

style={[textStyle,{fontSize: 8}]}

 

fontSize: 8 这种永远都要放到{}里面
posted @ 2020-01-16 17:06  liuw_flexi  阅读(164)  评论(0编辑  收藏  举报