react-native-map-clustering
react-native-map-clustering copied to clipboard
Exception thrown while executing UI block: *** -[__NSDictionaryM setObject:forKeyedSubscript:]: key cannot be nil
Hello, I am getting this error after the maps loads

When changing the MapView to react-native-maps the issue disappear
<MapView
provider={PROVIDER_GOOGLE}
customMapStyle={MapsStyle}
clusterColor={Colors.PRIMARY}
ref={ref}
style={styles.mapView}
initialRegion={region}>
{markers &&
markers.map(item => (
<Marker
key={item.id}
coordinate={{
latitude: Number(item.latitude),
longitude: Number(item.longitude),
}}
icon={markerIcon}
onPress={() => handleMarkerPress(item)}
/>
))}
</MapView>
Note: this issue occurs only when using google provider
Any update concerning this issue ?
@ramisalem ... this is due to react-native-reanimated... if you have that library, try to remove it and run the app and see if the issue happens...