{"id":4187,"url":"https://github.com/Spikef/react-native-phone-picker","last_synced_at":"2025-07-31T13:30:44.850Z","repository":{"id":126539781,"uuid":"41584733","full_name":"Spikef/react-native-phone-picker","owner":"Spikef","description":"React Native component for select phone number from address book. ","archived":false,"fork":false,"pushed_at":"2018-06-05T09:28:24.000Z","size":457,"stargazers_count":68,"open_issues_count":4,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-22T22:14:14.895Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Spikef.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-08-29T07:25:53.000Z","updated_at":"2023-12-27T04:52:44.000Z","dependencies_parsed_at":"2023-07-24T06:13:18.250Z","dependency_job_id":null,"html_url":"https://github.com/Spikef/react-native-phone-picker","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/Spikef%2Freact-native-phone-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spikef%2Freact-native-phone-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spikef%2Freact-native-phone-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spikef%2Freact-native-phone-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Spikef","download_url":"https://codeload.github.com/Spikef/react-native-phone-picker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228248551,"owners_count":17891447,"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:03.860Z","updated_at":"2024-12-05T06:31:37.941Z","avatar_url":"https://github.com/Spikef.png","language":"Objective-C","funding_links":[],"categories":["Components","\u003ca name=\"OS-\u0026-System-\u0026-File-Manager:-Native-Modules\"\u003eOS, System \u0026 File Manager: Native Modules\u003c/a\u003e","Others"],"sub_categories":["UI"],"readme":"# react-native-phone-picker\n\nReact Native component for select phone number from address book\n\n用于React Native的通讯录手机号选取模块\n\n![image](https://github.com/Spikef/react-native-phone-picker/raw/master/screenshots.gif)\n\n## Usage\n\n```javascript\nnpm install react-native-phone-picker --save\n```\n\nIn XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name], Go to node_modules ➜ react-native-phone-picker and add the `RNPhonePicker.xcodeproj` file\n\nIn XCode, in the project navigator, select your project. Add the lib*.a from the RNPhonePicker project to your project's Build Phases ➜ Link Binary With Libraries Click `RNPhonePicker.xcodeproj` file you added before in the project navigator and go the Build Settings tab. Make sure 'All' is toggled on (instead of 'Basic'). Look for Header Search Paths and make sure it contains  both $(SRCROOT)/../react-native/React and $(SRCROOT)/../../React - mark both as recursive.\n\nRun your project (Cmd+R)\n\n## Examples\n\n```javascript\n\nvar PhonePicker = require('react-native-phone-picker');\nPhonePicker.select(function(phone) {\n    if (phone) {\n        phone = phone.replace(/[^\\d]/g, '');\n        if (/^1[3|4|5|6|7|8|9][0-9]\\d{8}$/.test(phone)) {\n            console.log(phone);\n        }\n    }\n})\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSpikef%2Freact-native-phone-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSpikef%2Freact-native-phone-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSpikef%2Freact-native-phone-picker/lists"}