Skip to content

Phone number validation flow demo project for NativeScript with ng2

Notifications You must be signed in to change notification settings

abhayastudios/nativescript-phone-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Phone number validation flow demo project for NativeScript with ng2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published