美文网首页
第5.3章:文字样式

第5.3章:文字样式

作者: 赵羽珩 | 来源:发表于2019-03-31 18:11 被阅读0次

宁皓网-React Native => P10.文字样式

image.png image.png
const styles = StyleSheet.create({
  title: {
    fontSize: 26,
    color: '#6435c9',
    textAlign: 'center',// 文字居中
    fontStyle: 'italic',// 文字倾斜
    letterSpacing: 2,// 字与字间的距离
    lineHeight: 33,// 行间距
    fontFamily: 'Helvetica Neue',// 字体
    fontWeight: '900',// 900最粗的文字、100最细的文字
    textDecorationLine: 'line-through',// 添加删除线
    textDecorationLine: 'underline',// 添加下划线
  },
});

相关文章

网友评论

      本文标题:第5.3章:文字样式

      本文链接:https://www.haomeiwen.com/subject/larubqtx.html