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

Method animateToRegion

src/MapView.tsx:856–862  ·  view source on GitHub ↗
(region: Region, duration: number = 500)

Source from the content-addressed store, hash-verified

854 }
855
856 animateToRegion(region: Region, duration: number = 500) {
857 if (this.fabricMap.current) {
858 this.fabricMap.current.animateToRegion(region, duration);
859 } else if (this.map.current) {
860 Commands.animateToRegion(this.map.current, region, duration);
861 }
862 }
863 setRegion(region: Region) {
864 if (this.fabricMap.current) {
865 this.fabricMap.current.animateToRegion(region, 0);

Callers

nothing calls this directly

Calls 1

animateToRegionMethod · 0.65

Tested by

no test coverage detected