Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save calendee/767039b99ef1a181892c24ea3497301e to your computer and use it in GitHub Desktop.

Select an option

Save calendee/767039b99ef1a181892c24ea3497301e to your computer and use it in GitHub Desktop.
<SafeAreaView>
<View>
<TextInput
autoCapitalize="none"
keyboardType="email-address"
onChangeText={ this.changeEmailText }
placeholder="Email Address"
style={ [styles.textInput, emailInvalid ? styles.textInputError : null] }
testID="email"
value={ email }
/>
<TextInput
onChangeText={ this.changePasswordText }
placeholder="Password"
secureTextEntry
style={ [styles.textInput, passwordInvalid ? styles.textInputError : null] }
testID="password"
value={ password }
/>
<Text>
{ failureMessage }
</Text>
{ !loggingIn
&& (
<Button
onPress={ this.login }
testID="button-login"
title="Login"
color="#841584"
accessibilityLabel="Login"
/>
)
}
<Button
onPress={ this.closeModal }
testID="button-close-modal"
title="Close"
color="#841584"
accessibilityLabel="Close"
/>
</View>
</SafeAreaView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment