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

Method setRegion

src/MapView.tsx:863–868  ·  view source on GitHub ↗
(region: Region)

Source from the content-addressed store, hash-verified

861 }
862 }
863 setRegion(region: Region) {
864 if (this.fabricMap.current) {
865 this.fabricMap.current.animateToRegion(region, 0);
866 }
867 //TODO fix for android
868 }
869
870 fitToElements(options: FitToOptions = {}) {
871 const {

Callers

nothing calls this directly

Calls 1

animateToRegionMethod · 0.65

Tested by

no test coverage detected