
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@ichong/react-native-contacts
Advanced tools
调用系统自带的通讯录UI 并选择联系人


Using npm:
npm install react-native-contact-form --save
or using yarn:
yarn add react-native-contact-form
# RN >= 0.61.5
cd ios && pod install
Android requires allowing permissions with https://facebook.github.io/react-native/docs/permissionsandroid.html
The READ_CONTACTS permission must be added to your main application's AndroidManifest.xml.
...
<uses-permission android:name="android.permission.READ_CONTACTS" />
...
Add READ_PROFILE and/or WRITE_PROFILE permissions to AndroidManifest.xml
...
<uses-permission android:name="android.permission.READ_PROFILE" />
...
Add kit specific "permission" keys to your Xcode Info.plist file, in order to make requestPermission work. Otherwise your app crashes when requesting the specific permission. Open Info.plist. Add key Privacy - Contacts Usage Description with your kit specific permission. The value for the key is optional in development. If you submit to the App Store the value must explain why you need this permission.
If you'd like to read/write the contact's notes, call the iosEnableNotesUsage(true) method before accessing the contact infos. Also, a com.apple.developer.contacts.notes entitlement must be added to the project. Before submitting your app to the AppStore, the permission for using the entitlement has to be granted as well. You can find a more detailed explanation here.
import Contacts from 'react-native-contact-form'
Contacts.openContacts().then((data) => {
console.log(JSON.stringify(data)) // contact: {name: '小张', phone: '12345678901'}
}, (error) => {
console.log(error.message)
})
FAQs
调用系统自带的通讯录UI 并选择联系人
We found that @ichong/react-native-contacts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.