Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onClusterPress function not working on Android and expo #241

Open
sammy532 opened this issue Aug 8, 2022 · 1 comment
Open

onClusterPress function not working on Android and expo #241

sammy532 opened this issue Aug 8, 2022 · 1 comment

Comments

@sammy532
Copy link

sammy532 commented Aug 8, 2022

I have installed the library and imported it as suggested in the Read.me file. I am using expo for my project and testing on Android.

When I press on a cluster, I want to console.log the info about the cluster:

import MapView from "react-native-map-clustering";

....
<MapView
        style={styles.map}
        initialRegion={initialRegion}
        onClusterPress={(cluster, markers) => {
          console.log("cluster was pressed: ", cluster);
        }}
        clusterColor={"pink"}
        ref={mapRef}
      >
   ...

However, when I press the cluster, nothing happens. Can someone please, explain why?

@KirtanYork
Copy link

Having same issue in iOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants