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

Function animateCamera

src/createFabricMap.tsx:181–197  ·  view source on GitHub ↗
(camera: Partial<Camera>, duration: number)

Source from the content-addressed store, hash-verified

179 }
180 },
181 animateCamera(camera: Partial<Camera>, duration: number) {
182 if (fabricRef.current) {
183 try {
184 (Commands as any).animateCamera(
185 fabricRef.current,
186 JSON.stringify(camera),
187 duration,
188 );
189 } catch {
190 throw new Error('Failed to animateCamera');
191 }
192 } else {
193 throw new Error(
194 'animateCamera is only supported on iOS with Fabric.',
195 );
196 }
197 },
198 fitToCoordinates(
199 coordinates: LatLng[],
200 edgePadding: EdgePadding,

Callers

nothing calls this directly

Calls 1

animateCameraMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…