1//you should use onRegionChangeComplete to set the hook
2
3<MapView
4 loadingEnabled={true}
5 showsUserLocation={true}
6 showsMyLocationButton={true}
7 followsUserLocation
8 style={styles.maps}
9 region={currentRegion}
10 onRegionChangeComplete={(region) => setCurrentRegion(region)}
11>