From e50efbbee9464f619b0e882d3233eb9ca83b2ef9 Mon Sep 17 00:00:00 2001 From: Igor Santos Date: Fri, 30 Mar 2018 02:05:35 -0300 Subject: [PATCH 1/2] Fixing subtitles formatting on readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 641bd0c..c978f30 100644 --- a/README.md +++ b/README.md @@ -84,18 +84,18 @@ Also add 10. Clean and Rebuild your Xcode project -##API +## API `getContact` (Promise) - returns basic contact data as a JS object. Currently returns name, first phone number and first email for contact. `getEmail` (Promise) - returns first email address (if found) for contact as string. -##Usage +## Usage Methods should be called from React Native as any other promise. Prevent methods from being called multiple times (on Android). -###Example +### Example An example project can be found in this repo: https://github.com/LynxITDigital/react-native-contacts-wrapper-example/tree/master From c52f7c0abe027d41e58c22997529fe42331e0ed4 Mon Sep 17 00:00:00 2001 From: Igor Santos Date: Fri, 30 Mar 2018 02:07:32 -0300 Subject: [PATCH 2/2] using list to display methods --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c978f30..2e65268 100644 --- a/README.md +++ b/README.md @@ -86,8 +86,8 @@ Also add ## API -`getContact` (Promise) - returns basic contact data as a JS object. Currently returns name, first phone number and first email for contact. -`getEmail` (Promise) - returns first email address (if found) for contact as string. +- `getContact` (Promise) - returns basic contact data as a JS object. Currently returns name, first phone number and first email for contact. +- `getEmail` (Promise) - returns first email address (if found) for contact as string. ## Usage