From 3a573b776c63e65b3eff16f14b63f42f51f48925 Mon Sep 17 00:00:00 2001 From: Terrillo Walls Date: Thu, 14 Sep 2017 07:40:25 -0500 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9730e70..cfae651 100644 --- a/README.md +++ b/README.md @@ -44,10 +44,10 @@ A React Native bridge module for interacting with [Apple Healthkit] data. ### Installation -Install the [rn-apple-Healthkit] package from npm: +Install the [rn-apple-healthkit] package from npm: - Run `npm install rn-apple-healthkit --save` -- Run `react-native link rn-apple-Healthkit` +- Run `react-native link rn-apple-healthkit` Update `info.plist` in your React Native project ``` @@ -61,7 +61,7 @@ Update `info.plist` in your React Native project 1. Run `npm install rn-apple-healthkit --save` 2. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]` -3. Go to `node_modules` ➜ `rn-apple-Healthkit` and add `RCTAppleHealthkit.xcodeproj` +3. Go to `node_modules` ➜ `rn-apple-healthkit` and add `RCTAppleHealthkit.xcodeproj` 4. In XCode, in the project navigator, select your project. Add `libRCTAppleHealthkit.a` to your project's `Build Phases` ➜ `Link Binary With Libraries` 5. Click `RCTAppleHealthkit.xcodeproj` in the project navigator and go the `Build Settings` tab. Make sure 'All' is toggled on (instead of 'Basic'). In the `Search Paths` section, look for `Header Search Paths` and make sure it contains both `$(SRCROOT)/../../react-native/React` and `$(SRCROOT)/../../../React` - mark both as `recursive`. 6. Enable Healthkit in your application's `Capabilities` @@ -70,10 +70,10 @@ Update `info.plist` in your React Native project ### Usage -Just `import` the `rn-apple-Healthkit` module and you're ready to go! +Just `import` the `rn-apple-healthkit` module and you're ready to go! ```javascript -import AppleHealthkit from 'rn-apple-Healthkit'; +import AppleHealthkit from 'rn-apple-healthkit'; let options = { permissions: { @@ -96,7 +96,7 @@ AppleHealthkit.initHealthkit(options: Object, (err: Object, results: Object) => When the module has been successfully initialized you can read and write Healthkit data ```javascript -import AppleHealthkit from 'rn-apple-Healthkit'; +import AppleHealthkit from 'rn-apple-healthkit'; AppleHealthkit.initHealthkit(null: Object, (err: string, results: Object) => { @@ -160,7 +160,7 @@ The available Healthkit permissions to use with `initHealthkit` | Steps | [HKQuantityTypeIdentifierSteps](https://developer.apple.com/reference/Healthkit/hkquantitytypeidentifiersteps?language=objc) | ✓ | ✓ | | Weight | [HKQuantityTypeIdentifierBodyMass](https://developer.apple.com/reference/Healthkit/hkquantitytypeidentifierbodymass?language=objc) | ✓ | ✓ | -These permissions are exported as constants of the `rn-apple-Healthkit` module. +These permissions are exported as constants of the `rn-apple-healthkit` module. ```javascript import AppleHealthKit from 'react-native-apple-healthkit'; @@ -193,7 +193,7 @@ Options #### **`isAvailable`** Check if Healthkit is available on the device. ```javascript -import AppleHealthkit from 'rn-apple-Healthkit'; +import AppleHealthkit from 'rn-apple-healthkit'; AppleHealthkit.isAvailable((err: Object, available: boolean) => { if (available) { -- 2.26.2