Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

515
Visualizações
How to add strike through on Text in react native?

Hey I want to add Strike Through in $10 amount for showing cut amount. Please check below :

<View style={styles.row}>
    <View style={styles.inputWrapstotal}>
        <Text style={styles.labelcolor}>16.7% Off</Text>
    </View>
    <View style={styles.inputWrapstotal}>
        <Text style={styles.labelamount}>Rs $10</Text>
        <Text style={styles.labelamountchange}> 12 </Text>
    </View>
</View>

Please add css so that i can align in a line of both text , Thanks in Advance.

Please check the images enter image description here

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

With :

<Text style={{textDecorationLine: 'line-through', textDecorationStyle: 'solid'}}>
  Solid line-through
</Text>
over 4 years ago · Santiago Trujillo Relatório

0

<Text style={{ textDecorationLine: 'line-through' }}>Strike through text</Text>

You can find more text styling options from the official documentation here

over 4 years ago · Santiago Trujillo Relatório

0

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!

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda