// 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>
);
}
ezloc
0.0.17 • Public • PublishedReadme
Keywords
nonePackage Sidebar
Install
npm i ezloc
Weekly Downloads
13
Version
0.0.17
License
ISC
Unpacked Size
26.1 kB
Total Files
8