Skip to content

Commit

Permalink
simplify usage
Browse files Browse the repository at this point in the history
  • Loading branch information
morenoh149 authored Jan 18, 2019
1 parent e69fde3 commit 96aef2b
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,7 @@ Contacts.getAll((err, contacts) => {
// contacts returned
})
```

`getContactMatchingString` is meant to alleviate the amount of time it takes to get all contacts, by filtering on the native side based on a string.
```es
import Contacts from 'react-native-contacts';

Contacts.getContactsMatchingString("filter", (err, contacts) => {
if (err) {
throw err;
}
// contacts matching "filter"
})
```
See the full [API](#api) for more methods.

### Android permissions
On android you must request permissions beforehand
Expand Down

0 comments on commit 96aef2b

Please sign in to comment.