UNPKG

react-native-cross-geolocation

Version:

React Native Geolocation complatible module that uses the new Google Location API on Android devices.

10 lines (7 loc) 168 B
import { Platform, } from 'react-native' const Geolocation = Platform.OS === 'android' ? require('./geoloc') : navigator.geolocation export default Geolocation