react-native-map-clustering
react-native-map-clustering copied to clipboard
fitToCoordinates not working initial
When i click the button to fitToCoordinates it goes to the given array of coordinates and comabck to initial location second time it work as intended
<MapView
ref={mapRef}
onPanDrag={hideCard}
tracksViewChanges={false}
onPress={hideCard}
flex={1}
showsUserLocation={true}
showsMyLocationButton={false}
followsUserLocation={true}
spiralEnabled={false}
initialRegion={{
latitude: 0,
longitude: 0,
latitudeDelta: 0.005,
longitudeDelta: 0.005,
}}
provider={PROVIDER_GOOGLE}>
+1