Push method freezes the app for a short time

I just added an onboarding page on my app, and when i click the skip button


the app freezes for 1 or 2 seconds and then the HomePage appears … i tried the setTimeOut() but it still gives the same result. i tried minimizing the app by deleting some unnecessary libraries and other stuff.