Using the following:
- React-Native-Maps (AirBnB - 0.16.4)
- Redux
I'm a bit confused on how to update my state.map.region. I have both manual as well as automated (animateToCoordinate) actions that trigger state changes. I'm not sure whether to use onRegionChange, onRegionChangeComplete, or onMapReady to update the current region associated with my map. So far all the combinations I have tried resulted in choppy animations in which the map jumps back to a previous state (region).
What has been working best so far, is to update a local variable with the new region at onRegionChange and onRegionChangeComplete, and then dispatch that change on onMapReady. .. But still this is not ideal and choppy.
It almost seems as if onRegionChangeComplete is called too early.