npm.io
0.0.17 • Published 1 year ago

ezloc

Licence
ISC
Version
0.0.17
Deps
4
Size
26 kB
Vulns
0
Weekly
0

EZLoc

Example

// App.tsx
import React from 'react';
import { View, Text } from 'react-native';
import { useBestLocation } from './useBestLocation';

export default function App() {
  const bestLocation = useBestLocation();

  return (
    <View>
      <Text>
        {bestLocation
          ? `Lat: ${bestLocation.coords.latitude}, Lon: ${bestLocation.coords.longitude}`
          : 'Waiting for location...'}
      </Text>
    </View>
  );
}