0.0.17 • Published 18 days ago
ezloc v0.0.17
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>
);
}