You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Ask questions on [stackoverflow](https://stackoverflow.com/questions/tagged/reac
6
6
7
7
## Usage
8
8
`getAll` is a database intensive process, and can take a long time to complete depending on the size of the contacts list. Because of this, it is recommended you access the `getAll` method before it is needed, and cache the results for future use.
9
-
```es
9
+
```js
10
10
importContactsfrom'react-native-contacts';
11
11
12
12
Contacts.getAll((err, contacts) => {
@@ -20,7 +20,7 @@ See the full [API](#api) for more methods.
20
20
21
21
### Android permissions
22
22
On android you must request permissions beforehand
23
-
```es
23
+
```js
24
24
import { PermissionsAndroid } from'react-native';
25
25
importContactsfrom'react-native-contacts';
26
26
@@ -194,7 +194,7 @@ callback <Function>
194
194
```
195
195
196
196
## Example Contact Record
197
-
```es
197
+
```js
198
198
{
199
199
recordID:'6b2237ee0df85980',
200
200
backTitle:'',
@@ -237,7 +237,7 @@ callback <Function>
237
237
238
238
## Adding Contacts
239
239
Currently all fields from the contact record except for thumbnailPath are supported for writing
0 commit comments