I’m facing an issue in react native application where the UI freezes if any network requests are in progress. Every time I do a request to API the UI freezes until the request is responded.
React native version: 0.70.6
I’m calling 5 APIs in a screen, and there are some buttons in the screen which has different functionalities like opening the drawer navigator, navigate to other screen etc. The problem is that these button won’t respond if we click until all the 5 APIs return response.
I’m calling the APIs in useEffect (initial load)
useEffect(()=>{
getCollaborations();
getCreatorXP();
getDeals(0);
getTrending();
getProfile();
},[])