import { View, Text } from 'react-native'
import React from 'react'
function validateEmail(email:string): boolean {
// let reg = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w\w+)+$/;
let reg = /\S+@\S+\.\S+/;
if (reg.test(email) === false) {
return false;
} else {
return true;
}
}
export default validateEmail