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 这种永远都要放到{}里面
此文仅为鄙人学习笔记之用,朋友你来了,如有不明白或者建议又或者想给我指点一二,请私信我。liuw_flexi@163.com/QQ群:582039935. 我的gitHub: (学习代码都在gitHub) https://github.com/nwgdegitHub/
原文地址:https://www.cnblogs.com/liuw-flexi/p/12202240.html