-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|