forked from morenoh149/react-native-contacts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixes morenoh149#113
- Loading branch information
Harry Moreno
committed
Nov 23, 2016
1 parent
862f057
commit b23165b
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,13 +45,15 @@ Contacts.getAll((err, contacts) => { | |
```js | ||
{ | ||
recordID: 1, | ||
familyName: "Jung", | ||
givenName: "Carl", | ||
middleName: "", | ||
company: "", | ||
emailAddresses: [{ | ||
label: "work", | ||
email: "[email protected]", | ||
}], | ||
familyName: "Jung", | ||
givenName: "Carl", | ||
jobTitle: "", | ||
middleName: "", | ||
phoneNumbers: [{ | ||
label: "mobile", | ||
number: "(555) 555-5555", | ||
|
@@ -66,12 +68,12 @@ Contacts.getAll((err, contacts) => { | |
Currently all fields from the contact record except for thumbnailPath are supported for writing | ||
```js | ||
var newPerson = { | ||
familyName: "Nietzsche", | ||
givenName: "Friedrich", | ||
emailAddresses: [{ | ||
label: "work", | ||
email: "[email protected]", | ||
}], | ||
familyName: "Nietzsche", | ||
givenName: "Friedrich", | ||
} | ||
|
||
Contacts.addContact(newPerson, (err) => { /*...*/ }) | ||
|