nativescript-phone-validation

0.0.2 • Public • Published

NativeScript Phone Validation

This is a demo project for a phone number validation flow for NativeScript with ng2 (tested on 2.4). It assumes that the backend will use the international phonenumber (E164 format) as the username, but it can be completely customized.

The default flow is as follows:

  1. Auto detect user country if possible (using nativescript-telephony)
  2. Ask user to enter phonenumber, fullname and select country (if needed)
  3. Validate phonenumber is a valid cell phone number (using google-libphonenumber)
  4. Register user in backend (not implemented)
  5. Send SMS verification code (not implemented)
  6. Present user with SMS verification code input
  7. Login (not implemented)

##Usage

Just clone the repo and copy the relevant sections to your project.

##Screenshots

Package Sidebar

Install

npm i nativescript-phone-validation

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • abhayastudios