import * as React from 'react';
import { View, TextInput } from 'react-native';
export default function App() {
const validate = (text) => {
const reg = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w\w+)+$/;
console.log(text, reg.test(text));
};
return (
);
}