ezloc

0.0.17 • Public • Published

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>
  );
}

Readme

Keywords

none

Package Sidebar

Install

npm i ezloc

Weekly Downloads

13

Version

0.0.17

License

ISC

Unpacked Size

26.1 kB

Total Files

8

Last publish

Collaborators

  • trax