UNPKG

react-native-maps

Version:
15 lines (14 loc) 908 B
/// <reference types="react" /> import type { HostComponent } from 'react-native'; import { NativeProps } from './MapMarker'; import { LatLng } from './sharedTypes'; export type MapMarkerNativeComponentType = HostComponent<NativeProps>; interface NativeCommands { showCallout: (viewRef: NonNullable<React.RefObject<MapMarkerNativeComponentType>['current']>) => void; hideCallout: (viewRef: NonNullable<React.RefObject<MapMarkerNativeComponentType>['current']>) => void; redrawCallout: (viewRef: NonNullable<React.RefObject<MapMarkerNativeComponentType>['current']>) => void; animateMarkerToCoordinate: (viewRef: NonNullable<React.RefObject<MapMarkerNativeComponentType>['current']>, coordinate: LatLng, duration: number) => void; redraw: (viewRef: NonNullable<React.RefObject<MapMarkerNativeComponentType>['current']>) => void; } export declare const Commands: NativeCommands; export {};