Nativeapp

How to get Lat, Long in React Native app

Author - Varun Chopra

Steps to access GPS in React Native app to capture lat/long

In your AndroidManifest.xml add following permissions:

<uses-permission android:name=”android.permission.ACCESS_FINE_LOCATION” />

it comes enabled by default on iOS but not Android.

There are three methods available for geolocation:

getCurrentPosition Read more…