eri_qlue

Tukangs - Login

Dec 17th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Form extends Component {
  2.   render() {
  3.     return (
  4.       <View style={styles.formContainer}>
  5.         <StatusBar barStyle="light-content"/>
  6.         <TextInput
  7.           style={styles.input}
  8.           autoCapitalize="none"
  9.           onSubmitEditing={() => this.passwordInput.focus()}
  10.           autoCorrect={false}
  11.           keyboardType='email-address'
  12.           returnKeyType="next"
  13.           placeholder='Email'
  14.           placeholderTextColor='rgba(225,225,225,0.7)'
  15.           underlineColorAndroid='transparent'
  16.         />
  17.         <TextInput
  18.           style={styles.input}
  19.           returnKeyType="go" ref={(input)=> this.passwordInput = input}
  20.           placeholder='Password'
  21.           placeholderTextColor='rgba(225,225,225,0.7)'
  22.           secureTextEntry
  23.           underlineColorAndroid='transparent'
  24.         />
  25.         <TouchableOpacity
  26.           style={styles.buttonContainer}
  27.           onPress={onButtonPress}
  28.         >
  29.           <Text  style={styles.buttonText}>LOGIN</Text>
  30.         </TouchableOpacity>
  31.       </View>
  32.     );
  33.   }
  34. }
  35.  
  36. export default Form;
  37.  
  38.  
  39. deskripsi :
  40. is code for login, yang dimana apabila button login dklik makan system akan ngirim data ke server berupa apa username dan password
Advertisement
Add Comment
Please, Sign In to add comment