Skip to content

Repository files navigation

GeoLocations

React Native application to display geolocations after enabling gps using react-native.

Installation:

Mostly automatic installation (recommended)

  1. yarn add react-native-android-location-services-dialog-box
    or
    npm install react-native-android-location-services-dialog-box --save
  2. react-native link react-native-android-location-services-dialog-box

Manual Installation

Android
  1. yarn add react-native-android-location-services-dialog-box
    or
    npm install react-native-android-location-services-dialog-box --save
  2. Make the following additions to the given files:

android/settings.gradle

include ':react-native-android-location-services-dialog-box'
project(':react-native-android-location-services-dialog-box').projectDir =newFile(rootProject.projectDir, '../node_modules/react-native-android-location-services-dialog-box/android')

android/app/build.gradle

dependencies {
...
compile project(':react-native-android-location-services-dialog-box')
}

MainApplication.java

On top, where imports are:

importcom.showlocationservicesdialogbox.LocationServicesDialogBoxPackage;

Under protected List<ReactPackage> getPackages() {

returnArrays.<ReactPackage>asList(
newMainReactPackage(),
newLocationServicesDialogBoxPackage() // <== this
);
GEO 1GEO 2GEO 3

Play Video

Like Facebook Page

About

React Native application to display geolocations after enabling gps using react-native.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages