react-native-contact-list
get contact list from user device
Installation
npm install react-native-contact-list
Usage
Android
AndroidManifest.xml
iOS
Info.plist
NSContactsUsageDescription연락처를 쓰겠습니다.
Example
import ContactList Contact from "react-native-contact-list"; // ... { const contactList setContactList = ReactuseState<Contact[]>; const getContactList = try const isPermissionAuthorized = await ContactList; if isPermissionAuthorized === 'authorized' ; else const permissionResult = await ContactList; if permissionResult === 'authorized' ; else // todo: PERMISSION DENIED EXCEPTION console; catch e console; ; ... { ... }}
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT