0.0.2 • Published 7 years ago

nativescript-phone-validation v0.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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