// npm install @react-native-community/geolocation // npx react-native link @react-native-community/geolocation import Geolocation from '@react-native-community/geolocation'; Geolocation.getCurrentPosition(info => console.log(info));