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:
- Auto detect user country if possible (using nativescript-telephony)
- Ask user to enter phonenumber, fullname and select country (if needed)
- Validate phonenumber is a valid cell phone number (using google-libphonenumber)
- Register user in backend (not implemented)
- Send SMS verification code (not implemented)
- Present user with SMS verification code input
- Login (not implemented)
##Usage
Just clone the repo and copy the relevant sections to your project.
##Screenshots