React Native的常用的style设置
位置居中
alignItems: ‘center’, //水平居中
justifyContent: ‘center’ //垂直居中
文字居中
textAlignVertical: ‘center’,
textAlign: ‘center’,
textAlign: ‘right’,
文字粗体
fontWeight: ‘bold’,
间距设置
marginLeft: 10,
paddingLeft: ...
原创
2019-06-03 16:20:11 ·
1874 阅读 ·
0 评论