Oye, quiero agregar Strike Through en una cantidad de $ 10 para mostrar la cantidad recortada. Por favor verifique a continuación:
<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>Agregue css para que pueda alinear en una línea de ambos textos, gracias de antemano.
Con :
<Text style={{textDecorationLine: 'line-through', textDecorationStyle: 'solid'}}> Solid line-through </Text>Puede usar textDecorationLine con la propiedad 'line-through' como se muestra a continuación:
<Text style={{ textDecorationLine: 'line-through' }}>$12</Text>¡pondrá una línea sobre su texto!