Guest User

Untitled

a guest
Jun 18th, 2018
718
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. constructor(props) {
  2. super(props);
  3.  
  4. this.state = { email: '', password: '', error: '' };
  5.  
  6. this.handleOnPress = this.handleOnPress.bind(this);
  7. }
  8.  
  9. handleOnPress() {
  10. const { email, password } = this.state;
  11.  
  12. console.log(email);
  13. }
  14.  
  15. <Input
  16. value={this.state.email}
  17. placeholder="email@gmail.com"
  18. onChange={email => this.setState({ email })}
  19. label="Email"
  20. />
  21.  
  22. <TextInput
  23. style={styles.input}
  24. value={value}
  25. onChange={onChange}
  26. placeholder={placeholder}
  27. autoCorrect={autoCorrect}
  28. secureTextEntry={secureTextEntry}
  29. />
Add Comment
Please, Sign In to add comment