diff --git a/README.md b/README.md index 913dcafbdd40668d3fb304b527a88c2a5c16096a..a99287a6d031af1a54b225fe9c56ef3f2d58e41d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,14 @@ # react-native-apple-healthkit +## Getting started + +### Installation (xcode) + +1. `npm install react-native-apple-healthkit@https://github.com/GregWilson/react-native-apple-healthkit.git --save` +2. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]` +3. Go to `node_modules` ➜ `react-native-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`. +5. Run your project (`Cmd+R`) +