Skip to content

Commit 2bcf39d

Browse files
committed
Fixing minor bug
1 parent 4249a4e commit 2bcf39d

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

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.0.4",
15+
"react-native-map-clustering": "^3.0.5",
1616
"react-native-maps": "^0.26.1",
1717
"react-native-web": "^0.11.7"
1818
},

lib/ClusteredMarker.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { memo } from "react";
2-
import { Text, View, StyleSheet } from "react-native";
2+
import { Text, View, StyleSheet, TouchableOpacity } from "react-native";
33
import { Marker } from "react-native-maps";
44
import { returnMarkerStyle } from "./helpers";
55

@@ -19,10 +19,13 @@ const ClusteredMarker = ({
1919
longitude: geometry.coordinates[0],
2020
latitude: geometry.coordinates[1]
2121
}}
22-
onPress={onPress}
2322
style={{ zIndex: points + 1 }}
2423
>
25-
<View style={[styles.container, { width, height }]}>
24+
<TouchableOpacity
25+
activeOpacity={0.5}
26+
onPress={onPress}
27+
style={[styles.container, { width, height }]}
28+
>
2629
<View
2730
style={[
2831
styles.wrapper,
@@ -49,7 +52,7 @@ const ClusteredMarker = ({
4952
{points}
5053
</Text>
5154
</View>
52-
</View>
55+
</TouchableOpacity>
5356
</Marker>
5457
);
5558
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-map-clustering",
3-
"version": "3.0.4",
3+
"version": "3.0.5",
44
"description": "Map clustering both for Android and iOS",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)