I need quick help, please. When I put an invalid email and hit enter it shows me in the alert prompt that email is invalid but Whenever I am typing in my text box to correct my email the alert prompt is showing every time. I need to get rid of these. please, somebody, help me.
<View style={styles.inputContainer}>
<TextInput
autoCapitalize="none"
autoCompleteType="off"
autoCorrect={false}
value={username}
onChangeText={(text) => this.setState({username: text})}
placeholder="Email"
underlineColorAndroid="transparent"
style={styles.textInput}></TextInput>
</View>
The error alert prompt code
<View>{this.state.error ? Alert.alert('Email invalid') : null}</View>
Please login or Register to submit your answer