Search code examples
react-nativemapsfreezelag

react-native-maps lags a lot after returning from screen which make API calls


I am using react-native-maps in my home screen and from there I navigate to different screens. Some screens make API calls. But after returning from those screens, maps lags a lot and its a very bad experience. I am using react-navigation. Has anyone faced this issue earlier.


Solution

  • There was a mistake in my analysis. Actual issue was related to bottom sheet being kept open when I try to navigate to another screen. When I close the sheet and navigate, no lag is experienced