Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native inline style

Use style={[
	{StyleIntoObj},
	{StyleIntoObj}
]}

Example:

<Text
    style={[
        {opacity: resetPassword.length <= 8
            ? .7
            : 1
        },
        {color: resetPassword.length <= 8
            ? color1
            : color2
        }
    ]}
>Minimum 8 characters</Text>
 
PREVIOUS NEXT
Tagged: #react #native #inline #style
ADD COMMENT
Topic
Name
3+4 =