react-native-leaflet
react-native-leaflet copied to clipboard
Get onMapClicked event data
Please, how can I get onMapClicked event data to dynamically change the position of the marker according to the user's click on the screen over the map?
You can use the onMessageReceived
prop inside the LeafletView instance to capture events. From there on you can add your own code to handle each event as you please.
like this
onMessageReceived={() => { //code }}