const emailValidate = text => {
console.log(text);
let reg = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w\w+)+$/;
if (reg.test(text) === false) {
Alert.alert('', 'format email salah');
} else {
Alert.alert('', 'Email is Correct');
}
};
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment