Guest User

Untitled

a guest
Sep 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. import strings from "./strings";
  2. import styles from "./styles";
  3. import { strings as loginStrings } from "../../screens/Login";
  4. import React, { Component } from "react";
  5. import { View } from "react-native";
  6. import { Button, Input } from "react-native-elements";
  7. import { NavigationScreenProps } from "react-navigation";
  8.  
  9. export class LoginForm extends Component<NavigationScreenProps> {
  10. renderForm = () => (
  11. <View style={styles.container}>
  12. <Input
  13. placeholder={strings.emailAddress}
  14. keyboardType="email-address"
  15. autoCapitalize="none"
  16. />
  17. <Input placeholder={strings.password} secureTextEntry autoCapitalize="none" />
  18. <Button
  19. clear
  20. title={loginStrings.forgottenPassword}
  21. containerStyle={styles.forgottenPasswordButtonContainer}
  22. titleStyle={styles.forgottenPasswordTitle}
  23. onPress={() => this.props.navigation.navigate("PasswordResetScreen")}
  24. />
  25. <Button
  26. title={loginStrings.loginTitle}
  27. containerStyle={styles.loginButtonContainer}
  28. disabledStyle={styles.disabled}
  29. />
  30. </View>
  31. );
  32.  
  33. render() {
  34. return this.renderForm();
  35. }
  36. }
  37.  
  38. export default LoginForm;
Add Comment
Please, Sign In to add comment