I need to capture the Longitude and Latitude of the user from Google maps or open street maps. Could anybody let me know that is it possible to do in react-native.
As I know you can't get user location from the Map itself. You can use Geolocation API of react-native.
navigator.geolocation.getCurrentPosition(geo_success, geo_error?, geo_options?)
// or
navigator.geolocation.watchPosition(geo_success, geo_error?, geo_options?)
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments