Answers for "conditional inline style props react native"

3

conditional style prop react

style={{ textDecoration: todo.completed && "line-through" }}

style={{ textDecoration: todo.completed ? "line-through" : 'none' }}
Posted by: Guest on September-10-2020
1

conditional style react native

<TextInput
    style={[styles.text, touched && invalid ? styles.textinvalid : styles.textvalid]}
</TextInput>
Posted by: Guest on February-14-2021

Code answers related to "conditional inline style props react native"

Code answers related to "Javascript"

Browse Popular Code Answers by Language