nitaliano / react-native-mapbox-gl

A Mapbox GL react native module for creating custom maps
Other
2.16k stars 697 forks source link

onPress() not works #1562

Closed ManishSharmaApporio closed 5 years ago

ManishSharmaApporio commented 5 years ago

when i press on the map console didn't show.Please help me out how to solve this

<MapboxGL.MapView onRegionDidChange={this.onRegionDidChange} ref={c => (this._map = c)} style={{ flex: 1 }} zoomLevel={11} onPress={() => console.warn("aeqsa")} showUserLocation={true} compassEnabled={false} styleURL={this.mapStyleURI} attributionEnabled={false} onUserLocationUpdate={this.onUserLocationUpdate} //userTrackingMode={MapboxGL.UserTrackingModes.Follow} centerCoordinate={this.state.coordinates[0]}

    </MapboxGL.MapView>
kristfal commented 5 years ago

I assume this is on Android after a hot reload. This bug is fixed in master, so install from there and all should be well. Closing, please reopen if issue persists after master install and rebuild.

ManishSharmaApporio commented 5 years ago

@kristfal can you please send link where i access the proper documentation of that ?i couldn't found .Please help me out

ManishSharmaApporio commented 5 years ago

@kristfal Have you published the code on NPM after updating the code in master?