{"id":4771,"url":"https://github.com/kevinresol/react-native-sinch-verification","last_synced_at":"2025-04-15T23:26:25.703Z","repository":{"id":57340109,"uuid":"51902388","full_name":"kevinresol/react-native-sinch-verification","owner":"kevinresol","description":null,"archived":false,"fork":false,"pushed_at":"2016-03-09T06:36:43.000Z","size":3347,"stargazers_count":16,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-23T09:31:31.257Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevinresol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-17T07:08:35.000Z","updated_at":"2024-04-23T09:31:31.258Z","dependencies_parsed_at":"2022-08-24T14:57:02.310Z","dependency_job_id":null,"html_url":"https://github.com/kevinresol/react-native-sinch-verification","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinresol%2Freact-native-sinch-verification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinresol%2Freact-native-sinch-verification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinresol%2Freact-native-sinch-verification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinresol%2Freact-native-sinch-verification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinresol","download_url":"https://codeload.github.com/kevinresol/react-native-sinch-verification/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240351253,"owners_count":19787799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:17:22.790Z","updated_at":"2025-02-28T19:30:22.181Z","avatar_url":"https://github.com/kevinresol.png","language":"Objective-C","funding_links":[],"categories":["Components"],"sub_categories":["Integrations"],"readme":"## react-native-sinch-verification\n\nSinch Verification for react native. http://www.sinch.com\n\n### Installation\n\n#### IOS\n1. `npm install react-native-sinch-verification`\n2. In the XCode's \"Project navigator\", right click on project name folder ➜ `Add Files to \u003c...\u003e`\n - Ensure `Copy items if needed` and `Create groups` are checked\n3. Go to `node_modules` ➜ `react-native-sinch-verification` ➜ add `SinchVerificationIOS` folder\n4. Add the dependency frameworks as described [here](https://www.sinch.com/docs/verification/ios#addthesinchverificationframework) (The `SinchVerication.framework` can be found in this package, under the `SinchVericationSDK` folder)\n\n#### Android\n1. `npm install react-native-sinch-verification`\n2. `rnpm link react-native-sinch-verification` - (run `npm install -g rnpm` if required)\n3. require the permissions as specified [here](https://www.sinch.com/docs/verification/android/#permissions)\n\n### Usage\n\n```javascript\nvar SinchVerification = require('react-native-sinch-verification');\nvar custom = \"A custom string to be sent to your server backend, through Sinch's callback URL\";\n\n// init with app key\nSinchVerification.init('your-app-key');\n\n// sms verification\nSinchVerification.sms('your-phone-number-without-country-code', custom, (err, res) =\u003e {\n  if (!err) {\n      // for android, verification is done, because the sms has been read automatically\n      // for ios, this means the sms has been sent out, you need to call verify with the received code\n  }\n});\n\n// verify the received code (not needed on android)\nSinchVerification.verify('the-received-code', (err, res) =\u003e {\n  if (!err) {\n      // done!\n  }\n});\n\n// flash call verification (android only)\nSinchVerification.flashCall('your-phone-number-without-country-code', custom, (err, res) =\u003e {\n  if (!err) {\n      // done!\n  }\n});\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinresol%2Freact-native-sinch-verification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinresol%2Freact-native-sinch-verification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinresol%2Freact-native-sinch-verification/lists"}