Guest User

Untitled

a guest
Dec 24th, 2018
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. /**/
  2.  
  3. export default class App extends React.Component {
  4. constructor(props) {
  5. super(props);
  6.  
  7. this.state = {
  8. /**/
  9. username: '',
  10. password: ''
  11. };
  12. }
  13.  
  14. _handlePress() {
  15. alert(this.state.username);
  16. alert(this.state.password);
  17. }
  18.  
  19. /**/
  20.  
  21. render() {
  22. /**/
  23. return <Layout />;
  24. }
  25. }
  26.  
  27. /**/
  28. export default ({navigation, _handlePress}) => (
  29. <View style={{ paddingVertical: 20 }}>
  30. <Card title="SIGN IN">
  31. <FormLabel>Email</FormLabel>
  32. <FormInput
  33. placeholder="Email address..."
  34. onChangeText={text => this.setState({email:text})}
  35. />
  36. <FormLabel>Password</FormLabel>
  37. <FormInput
  38. secureTextEntry
  39. placeholder="Password..."
  40. onChangeText={text => this.setState({password:text})}
  41. />
  42.  
  43. <Button
  44. title="SIGN IN"
  45. onPress={ _handlePress}
  46. />
  47. </Card>
  48. </View>
  49. );
Add Comment
Please, Sign In to add comment