If props.onMapReady is called immediately after setMap then a method
called in props.onMapReady such as fitToCoordinates may not work
correctly since map is still null.
Using an effect to trigger props.onMapReady means that by the time
props.onMapReady is triggered MapView is ready not just the underlying
GoogleMap.
If props.onMapReady is called immediately after setMap then a method called in props.onMapReady such as fitToCoordinates may not work correctly since map is still null.
Using an effect to trigger props.onMapReady means that by the time props.onMapReady is triggered MapView is ready not just the underlying GoogleMap.