How to add strike through on Text in react native?
With :
<Text style={{textDecorationLine: 'line-through', textDecorationStyle: 'solid'}}> Solid line-through</Text>
<Text style={{ textDecorationLine: 'line-through' }}>Strike through text</Text>
You can find more text styling options from the official documentation here
You can use textDecorationLine
with 'line-through' property like below:
<Text style={{ textDecorationLine: 'line-through' }}>$12</Text>
it will put a line over your text!