react-native-mapbox-gl
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -57,5 +57,2 @@ 'use strict'; | ||
}, | ||
_onTap(event: Event) { | ||
if (this.props.onTap) this.props.onTap(event.nativeEvent.src); | ||
}, | ||
_onLongPress(event: Event) { | ||
@@ -133,3 +130,2 @@ if (this.props.onLongPress) this.props.onLongPress(event.nativeEvent.src); | ||
onUpdateUserLocation={this._onUpdateUserLocation} | ||
onTap={this._onTap} | ||
onLongPress={this._onLongPress} />; | ||
@@ -136,0 +132,0 @@ } |
@@ -30,3 +30,2 @@ # iOS API Docs | ||
| `onRightAnnotationTapped` | `{title: null, subtitle: null, latitude: 0, longitude: 0}` | Fired when user taps `rightCalloutAccessory` | ||
| `onTap` | `{latitude: 0, longitude: 0, screenCoordY, screenCoordX}` | Fired when the users taps the screen. | ||
| `onLongPress` | `{latitude: 0, longitude: 0, screenCoordY, screenCoordX}` | Fired when the user taps and holds screen for 1 second. | ||
@@ -33,0 +32,0 @@ |
@@ -82,5 +82,2 @@ 'use strict'; | ||
}, | ||
onTap(location) { | ||
console.log('tapped', location); | ||
}, | ||
onLongPress(location) { | ||
@@ -151,3 +148,2 @@ console.log('long pressed', location); | ||
onUpdateUserLocation={this.onUpdateUserLocation} | ||
onTap={this.onTap} | ||
onLongPress={this.onLongPress} /> | ||
@@ -154,0 +150,0 @@ </View> |
{ | ||
"name": "react-native-mapbox-gl", | ||
"description": "A Mapbox GL react native module for creating custom maps", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"author": "Bobby Sudekum", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
1
0
130022
27
668