diff --git a/src/MapView.tsx b/src/MapView.tsx index f8c267b05..db79da712 100644 --- a/src/MapView.tsx +++ b/src/MapView.tsx @@ -171,7 +171,6 @@ class MapView extends React.Component { }; this._onMapReady = this._onMapReady.bind(this); - this._onMarkerPress = this._onMarkerPress.bind(this); this._onChange = this._onChange.bind(this); this._onLayout = this._onLayout.bind(this); } @@ -259,12 +258,6 @@ class MapView extends React.Component { } } - _onMarkerPress(event) { - if (this.props.onMarkerPress) { - this.props.onMarkerPress(event.nativeEvent); - } - } - private _onChange({ nativeEvent }: ChangeEvent) { this.__lastRegion = nativeEvent.region; const isGesture = nativeEvent.isGesture; @@ -587,7 +580,6 @@ class MapView extends React.Component { props = { region: null, initialRegion: null, - onMarkerPress: this._onMarkerPress, onChange: this._onChange, onMapReady: this._onMapReady, onLayout: this._onLayout, @@ -606,7 +598,6 @@ class MapView extends React.Component { style: this.props.style, region: null, initialRegion: null, - onMarkerPress: this._onMarkerPress, onChange: this._onChange, onMapReady: this._onMapReady, onLayout: this._onLayout,