react-native-email-validator 👈👈👈
Validate your email address simply
Installation
Using Yarn:
yarn add react-native-email-validator
Using NPM:
npm install react-native-email-validator
Import
import validate from 'react-native-email-validator';
Check
validate('alauddin12340@gmail.com'); // true
validate('abc.com'); // false
Result
{
validate('abc@gmail.com')
? console.log('Email is valid')
: console.log('Email is not valid');
}
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library