| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | 26-Sep-2023 | - | ||||
| android/ | H | 26-Sep-2023 | - | 2,694 | 2,221 | |
| build/ | H | 26-Sep-2023 | - | 1,517 | 541 | |
| ios/ | H | 26-Sep-2023 | - | 1,914 | 1,651 | |
| plugin/ | H | 26-Sep-2023 | - | 58 | 49 | |
| src/ | H | 26-Sep-2023 | - | 1,231 | 477 | |
| .eslintrc.js | H A D | 26-Sep-2023 | 103 | 3 | 1 | |
| .npmignore | H A D | 26-Sep-2023 | 183 | 12 | 8 | |
| CHANGELOG.md | H A D | 26-Sep-2023 | 8.6 KiB | 215 | 114 | |
| README.md | H A D | 26-Sep-2023 | 1.8 KiB | 54 | 35 | |
| app.plugin.js | H A D | 26-Sep-2023 | 57 | 2 | 1 | |
| babel.config.js | H A D | 26-Sep-2023 | 104 | 3 | 1 | |
| package.json | H A D | 26-Sep-2023 | 1.1 KiB | 47 | 46 | |
| tsconfig.json | H A D | 26-Sep-2023 | 217 | 10 | 9 | |
| unimodule.json | H A D | 26-Sep-2023 | 65 | 5 | 4 |
README.md
1<p> 2 <a href="https://docs.expo.dev/versions/latest/sdk/contacts/"> 3 <img 4 src="../../.github/resources/expo-contacts.svg" 5 alt="expo-contacts" 6 height="64" /> 7 </a> 8</p> 9 10Provides access to the phone's system contacts. 11 12# API documentation 13 14- [Documentation for the main branch](https://github.com/expo/expo/blob/main/docs/pages/versions/unversioned/sdk/contacts.mdx) 15- [Documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/contacts/) 16 17# Installation in managed Expo projects 18 19For [managed](https://docs.expo.dev/archive/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/contacts/). 20 21# Installation in bare React Native projects 22 23For bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing. 24 25### Add the package to your npm dependencies 26 27``` 28npx expo install expo-contacts 29``` 30 31### Configure for iOS 32 33Add `NSContactsUsageDescription` key to your `Info.plist`: 34 35```xml 36<key>NSContactsUsageDescription</key> 37<string>Allow $(PRODUCT_NAME) to access your contacts</string> 38``` 39 40Run `npx pod-install` after installing the npm package. 41 42### Configure for Android 43 44Add `android.permission.READ_CONTACTS` and optionally `android.permission.WRITE_CONTACTS` permissions to your manifest (`android/app/src/main/AndroidManifest.xml`): 45 46```xml 47<uses-permission android:name="android.permission.READ_CONTACTS" /> 48<uses-permission android:name="android.permission.WRITE_CONTACTS" /> 49``` 50 51# Contributing 52 53Contributions are very welcome! Please refer to guidelines described in the [contributing guide](https://github.com/expo/expo#contributing). 54