MCPcopy Index your code
hub / github.com/react-native-maps/react-native-maps / NativeCommands

Interface NativeCommands

src/MapMarkerNativeComponent.ts:8–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6export type MapMarkerNativeComponentType = HostComponent<NativeProps>;
7
8interface NativeCommands {
9 showCallout: (
10 viewRef: NonNullable<
11 React.RefObject<MapMarkerNativeComponentType>['current']
12 >,
13 ) => void;
14 hideCallout: (
15 viewRef: NonNullable<
16 React.RefObject<MapMarkerNativeComponentType>['current']
17 >,
18 ) => void;
19 setCoordinates: (
20 viewRef: NonNullable<
21 React.RefObject<MapMarkerNativeComponentType>['current']
22 >,
23 coordinate: LatLng,
24 ) => void;
25 redrawCallout: (
26 viewRef: NonNullable<
27 React.RefObject<MapMarkerNativeComponentType>['current']
28 >,
29 ) => void;
30 animateMarkerToCoordinate: (
31 viewRef: NonNullable<
32 React.RefObject<MapMarkerNativeComponentType>['current']
33 >,
34 coordinate: LatLng,
35 duration: number,
36 ) => void;
37 redraw: (
38 viewRef: NonNullable<
39 React.RefObject<MapMarkerNativeComponentType>['current']
40 >,
41 ) => void;
42}
43
44export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
45 supportedCommands: [

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…