包详细信息

react-native-email-validator

itsaladin104MIT0.1.1

Validate your email address simply

react-native, ios, android, email

自述文件

react-native-email-validator 👈👈👈

Validate your email address simply

Screenshot a Screenshot b

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