MCPcopy Create free account
hub / github.com/react-native-maps/react-native-maps / setCamera

Method setCamera

src/MapView.tsx:833–839  ·  view source on GitHub ↗
(camera: Partial<Camera>)

Source from the content-addressed store, hash-verified

831 }
832
833 setCamera(camera: Partial<Camera>) {
834 if (this.fabricMap.current) {
835 this.fabricMap.current.setCamera(camera);
836 } else if (this.map.current) {
837 Commands.setCamera(this.map.current, camera);
838 }
839 }
840
841 animateCamera(camera: Partial<Camera>, opts?: {duration?: number}) {
842 if (this.fabricMap.current) {

Callers

nothing calls this directly

Calls 1

setCameraMethod · 0.65

Tested by

no test coverage detected