Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Form extends Component {
- render() {
- return (
- <View style={styles.formContainer}>
- <StatusBar barStyle="light-content"/>
- <TextInput
- style={styles.input}
- autoCapitalize="none"
- onSubmitEditing={() => this.passwordInput.focus()}
- autoCorrect={false}
- keyboardType='email-address'
- returnKeyType="next"
- placeholder='Email'
- placeholderTextColor='rgba(225,225,225,0.7)'
- underlineColorAndroid='transparent'
- />
- <TextInput
- style={styles.input}
- returnKeyType="go" ref={(input)=> this.passwordInput = input}
- placeholder='Password'
- placeholderTextColor='rgba(225,225,225,0.7)'
- secureTextEntry
- underlineColorAndroid='transparent'
- />
- <TouchableOpacity
- style={styles.buttonContainer}
- onPress={onButtonPress}
- >
- <Text style={styles.buttonText}>LOGIN</Text>
- </TouchableOpacity>
- </View>
- );
- }
- }
- export default Form;
- deskripsi :
- 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