If you are using the latest version of Expo and Expo Router, the links may help you to work with a protected route in any Expo app.
Appwrite Docs for setting a protected route in an Expo app
YouTube video for how to define auth flow in an Expo app using protected route