Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

conditional style react native

<TextInput
    style={[styles.text, touched && invalid ? styles.textinvalid : styles.textvalid]}
</TextInput>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #conditional #style #react #native
ADD COMMENT
Topic
Name
8+1 =