0.0.2 • Published 7 years ago

react-native-sinch v0.0.2

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

react-native-sinch

npm version Sinch Verification for react native. http://www.sinch.com

https://github.com/kevinresol/react-native-sinch-verification is not working now , so i write the new one.

repositories { mavenCentral() flatDir { dirs 'libs' } }

#Usage

// init with app key RNSinch.init('your-app-key');

// sms verification RNSinch.sms('your-phone-number-without-country-code', custom, (err, res) => { if (!err) { // for android, verification is done, because the sms has been read automatically // for ios, this means the sms has been sent out, you need to call verify with the received code } });

// verify the received code (not needed on android) RNSinch.verify('the-received-code', (err, res) => { if (!err) { // done! } });

// flash call verification (android only) RNSinch.flashCall('your-phone-number-without-country-code', custom, (err, res) => { if (!err) { // done! } });