Skip to content
Phone number validation flow demo project for NativeScript with ng2
TypeScript CSS
Branch: master
Clone or download
Latest commit 5f20d2b Feb 6, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Minor fixes Feb 5, 2017
img Initial commit Jan 30, 2017
.gitignore Initial commit Jan 30, 2017
README.md Minor fixes Feb 5, 2017
package.json Minor fixes Feb 5, 2017
references.d.ts Initial commit Jan 30, 2017
tsconfig.json Initial commit Jan 30, 2017

README.md

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

You can’t perform that action at this time.