openmobilehub / react-native-omh-maps

https://openmobilehub.github.io/react-native-omh-maps/
Apache License 2.0
22 stars 0 forks source link

fix: marker not removing native component from map upon re-creation but not detachment from RN tree #68

Closed artus9033 closed 3 months ago

artus9033 commented 3 months ago

Summary

This PR adds in handling of unmount event from the OmhMarker to ensure that the native entity is removed from the map. This is apparently needed as changing markers rendered in a map expression (as array) does not cause unmounts, but the native markers from previous RN tree are left behind.

Demo

N/A

Checklist: