Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

if statement in react native

renderConditionalText() {
    if (this.state.isSignUp) {
        return <Text> Sign Up </Text>;
    }
     return <Text> Forgot Password </Text>; 
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #statement #react #native
ADD COMMENT
Topic
Name
4+9 =