You are probably blocking the main thread during the API call. Ensure that your API call is wrapped in an asynchronous function (using async/await
). Otherwise, you can also try using InteractionManager.runAfterInteractions
to ensure that the API call doesn't block user.