Skip to content

Commit

Permalink
Updated readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Richou committed Jul 16, 2019
1 parent eead463 commit 9939bfd
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,25 @@ Allow to display a GoogleMap like android popup to ask for user to enable locati

## Getting started

**ReactNative >= 0.60.0**

### Installation

`$ npm install react-native-android-location-enabler --save`

### Mostly automatic installation
Since ReactNative 0.60.0 and ReactNative Cli 2.0.0, no action is needed to add a native module.

`$ react-native link react-native-android-location-enabler`
**ReactNative < 0.60.0**

### Installation

### Manual installation
`$ npm install [email protected] --save`

#### Configuration

`$ react-native link react-native-android-location-enabler`

#### Android
#### Manual Configuration

1. Open up `android/app/src/main/java/[...]/MainApplication.java`
- Add `import com.heanoria.library.reactnative.locationenabler.RNAndroidLocationEnablerPackage;` to the imports at the top of the file
Expand Down

0 comments on commit 9939bfd

Please sign in to comment.