UNPKG

expo-osm-sdk

Version:

OpenStreetMap component for React Native with Expo

22 lines 602 B
import React from 'react'; import type { LocationButtonProps } from '../types'; /** * LocationButton - A clean button to get user's current location * * @example * <LocationButton * getCurrentLocation={async () => { * const loc = await mapRef.current?.getCurrentLocation(); * return loc; * }} * onLocationFound={(location) => { * mapRef.current?.animateToLocation( * location.latitude, * location.longitude, * 15 * ); * }} * /> */ export declare const LocationButton: React.FC<LocationButtonProps>; //# sourceMappingURL=LocationButton.d.ts.map