Created
December 1, 2016 07:07
-
-
Save sAbakumoff/a2397c96c3385101872ee87f4eac0b71 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onTypeEmail(email) { | |
return this.setState({ email }); | |
} | |
onTypePassword(password) { | |
this.setState({ password }); | |
} | |
render() { | |
return ( | |
<View style={login.container}> | |
<EmailInput | |
value={this.state.email} | |
onChangeText={this.onTypeEmail} | |
placeholder={'Username or Email'} | |
autoFocus | |
/> | |
<PasswordInput | |
value={this.state.password} | |
onChangeText={this.onTypePassword} | |
placeholder={'Password'} | |
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment