React-Native:删除线样式

Text

属性(Style) 类型
textDecorationLine enum(枚举) “none”, ‘underline’, ‘line-through’, ‘underline line-through’

* ‘none’ 无
* ‘underline’ 下划线
* ‘line-through’ 删除线
* ‘underline line-through’ 删除线+下划线

示例

<Text style={{textDecorationLine:'line-through'}}>删除线示例Text>

你可能感兴趣的:(React,react,enum)