Skip to content

Commit dba5bfc

Browse files
committed
Next major release 🎉
1 parent 94f4d1b commit dba5bfc

File tree

6 files changed

+216
-190
lines changed

6 files changed

+216
-190
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default App;
7070
| **layoutAnimationConf** | LayoutAnimationConfig | LayoutAnimation.Presets.spring | `LayoutAnimation.Presets.spring` | Custom Layout animation configuration object for clusters animation during implode / explode **Works only on iOS**. |
7171
| **onRegionChangeComplete(region, markers)** | Function | () => {} | Called when map's region changes. In return you get current region and markers data. |
7272
| **onMarkersChange(markers)** | Function | () => {} | Called when markers change. In return you get markers data. |
73-
| **mapRef(ref)** | Function | () => {} | Return reference to `react-native-maps` MapView component. |
73+
| **superClusterRef** | MutableRefObject | {} | Return reference to `supercluster` library. You can read more about options it has [here.](https://github.com/mapbox/supercluster) |
7474
| **clusteringEnabled** | Bool | true | Set true to enable and false to disable clustering. |
7575
| **spiralEnabled** | Bool | true | Set true to enable and false to disable spiral view. |
7676
| **renderCluster** | Function | undefined | Enables you to render custom cluster with custom styles and logic. |

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"react": "16.8.3",
1313
"react-dom": "16.8.3",
1414
"react-native": "https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz",
15-
"react-native-map-clustering": "^3.2.0",
15+
"react-native-map-clustering": "^3.3.0",
1616
"react-native-maps": "^0.26.1",
1717
"react-native-web": "^0.11.7"
1818
},

index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ declare module "react-native-map-clustering" {
2222
clusterTextColor?: string;
2323
clusterFontFamily?: string;
2424
spiderLineColor?: string;
25+
superClusterRef: React.MutableRefObject;
2526
onClusterPress?: (cluster: Marker, markers?: Marker[]) => void;
26-
mapRef?: (ref: React.Ref<Map>) => void;
27+
getClusterEngine?: (ref: any) => void;
2728
onMarkersChange?: (markers?: Marker[]) => void;
29+
renderCluster?: (cluster: any) => React.ReactNode;
2830
}
2931

3032
export default class MapView extends React.Component<

0 commit comments

Comments
 (0)