" statement."/> " statement.">

Home  >  Article  >  Web Front-end  >  How to set strikethrough in react native

How to set strikethrough in react native

藏色散人
藏色散人Original
2022-12-27 09:53:232215browse

How to set strikethrough in react native: 1. Create a react sample file; 2. Pass "17f873ee5c6ebad25cb0cbde8195674cb735fb8965edb39ac28662131d16c063" Just add strikethrough to the statement.

How to set strikethrough in react native

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:&#39;line-through&#39;}}>删除线示例</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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Can react use require?Next article:Can react use require?