Auth0 redirect back to login page, instead of dashboard

I tried with the sample app auth0-react-native-sample/00-Login-Hooks at master · auth0-samples/auth0-react-native-sample · GitHub, after authentication from auth0 page, user comes back to the same page where he clicked on login for 1-2 seconds, before navigating to dashboard screen. How can I navigate user to Dashboard wihout coming back to ‘log in’ button screen.