From aefb2687d982c086c48fb6052ebf649e8c61f11f Mon Sep 17 00:00:00 2001 From: Firoz Ahmed Date: Wed, 30 Oct 2019 14:44:33 +0530 Subject: [PATCH] Update README.md --- README.md | 34 +++------------------------------- 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index da12d51..24c058d 100644 --- a/README.md +++ b/README.md @@ -1,38 +1,10 @@ # react-native-compass-heading -## Getting started +## Installation -`$ npm install react-native-compass-heading --save` - -### Mostly automatic installation - -`$ react-native link react-native-compass-heading` - -### Manual installation - - -#### iOS - -1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]` -2. Go to `node_modules` ➜ `react-native-compass-heading` and add `CompassHeading.xcodeproj` -3. In XCode, in the project navigator, select your project. Add `libCompassHeading.a` to your project's `Build Phases` ➜ `Link Binary With Libraries` -4. Run your project (`Cmd+R`)< - -#### Android - -1. Open up `android/app/src/main/java/[...]/MainApplication.java` - - Add `import com.reactlibrary.CompassHeadingPackage;` to the imports at the top of the file - - Add `new CompassHeadingPackage()` to the list returned by the `getPackages()` method -2. Append the following lines to `android/settings.gradle`: - ``` - include ':react-native-compass-heading' - project(':react-native-compass-heading').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-compass-heading/android') - ``` -3. Insert the following lines inside the dependencies block in `android/app/build.gradle`: - ``` - compile project(':react-native-compass-heading') - ``` +`$ yarn add react-native-compass-heading` +`$ cd ios/ && pod install && cd ..` ## Usage ```javascript