" statement."/> " statement.">
Home > Article > Web Front-end > How to set strikethrough in react native
How to set strikethrough in react native: 1. Create a react sample file; 2. Pass "17f873ee5c6ebad25cb0cbde8195674cb735fb8965edb39ac28662131d16c063" Just add strikethrough to the statement.
The operating environment of this tutorial: Windows 10 system, react18.0.0 version, Dell G3 computer.
react native How to set strikethrough?
React-Native: Strikethrough style
Attribute(Style) | Type | Value |
---|---|---|
textDecorationLine | enum(enumeration) | "none", 'underline', 'line-through', ' underline line-through' |
* 'none' none
* 'underline' underline
* 'line-through ' Strikethrough
* 'underline line-through' Strikethrough underline
Example
<Text style={{textDecorationLine:'line-through'}}>删除线示例</Text>
Recommended learning: "react video tutorial》
The above is the detailed content of How to set strikethrough in react native. For more information, please follow other related articles on the PHP Chinese website!