React Native react-native-maps
I have a question about pushing and updating drops without updating the state of a component.
I currently have a parent component, and inside with the react-native-maps component with marker components.
If I want to update these markers or add new markers, I have to do it through state that gets passed down as a property. The problem I am having is each time I do this, the map is redrawn and I am moved back to the initial coordinates.
Is it possible to update the maps markers and properties through some sort of push method or direct manipulation. Essentially, I would like to add or remove markers from the map, and change their custom image without the map redrawing.
https://github.com/react-community/react-native-maps
Comments
Post a Comment