{"repo":"douglasjunior/react-native-get-location","free":true,"listed":false,"github":"https://github.com/douglasjunior/react-native-get-location","clone":"git clone https://github.com/douglasjunior/react-native-get-location.git","description":"⚛ Simple to use React Native library to get native device location for Android and iOS.","language":"Java","stars":259,"topics":["android","ios","react-native","hacktoberfest","location","gps"],"license":"MIT","category":"mobile-apps","readme_excerpt":"React-Native Get Location ⚛ Simple to use React Native library to get native device location for Android and iOS. Requirements - React Native = 0.71.0 - iOS = 14.0 - Android = API 21 Install Install dependency package Or Go to the folder your-project/ios and run pod install , and you're done. Android post install For Android you need to define the location permissions on AndroidManifest.xml . iOS post install You need to define the permission NSLocationWhenInUseUsageDescription on Info.plist . Usage There is only one function that you need to use to get the user's current location. For more details, see the Sample Project. API function GetLocation.getCurrentPosition(LocationConfig) Parameters: - LocationConfig : Configuration object to determine how to get the user current location. Return: - Promise : Promise thats resolve to a Location object. Object LocationConfig Properties: - enableHighAccuracy : Set true to use 'fine location' (GPS) our false to use 'course location' (Wifi, Bluetooth, 3G). Default: false - timeout : The max time (in milliseconds) that you want to wait to receive a location. Default: 60000 (60 seconds) - rationale? : (Android only) See the React Native docs. Object Location Properties: - latitude : The latitude, in degrees. - longitude : The longitude, in degrees. - altitude : The altitude if available, in meters above the WGS 84 reference ellipsoid. - accuracy : The estimated horizontal accuracy of this location, radial, in meters. - speed : The speed i","default_branch":null,"files":null,"tree":[],"storefront":"/r/douglasjunior","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/douglasjunior/react-native-get-location/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}