Skip to content

Instantly share code, notes, and snippets.

@sAbakumoff
Created December 1, 2016 07:07
Show Gist options
  • Save sAbakumoff/a2397c96c3385101872ee87f4eac0b71 to your computer and use it in GitHub Desktop.
Save sAbakumoff/a2397c96c3385101872ee87f4eac0b71 to your computer and use it in GitHub Desktop.
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