react-native-web-maps
react-native-web-maps copied to clipboard
onRegionChangeComplete is not triggered when user zooms in/out
When the user zooms the map using the scroll wheel or the +/- buttons, onRegionChangeComplete is not being triggered.
When user pans the map by dragging, onRegionChangeComplete is being called correctly.
Current version: "@teovilla/react-native-web-maps": "^0.6.1",
I'm using the component like this:
<MapView
style={{ flex: 1 }}
provider="google"
region={region}
onRegionChangeComplete={(reg, details) => {
console.log({ reg, details });
setRegion(reg);
}}>
I fixed this locally by adding one line to src/components/map-view.tsx
:
Hey! Sorry for the late reply. Would you mind forking the project and creating a PR with the fix?
I'm also facing this issue, please can this fix be merged