how to clear expo router stack history?

Please provide the following:

  1. SDK Version:49
  2. Platforms(Android/iOS/web/all): Android & Expo
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

I am using expo 49 and expo router 2.0
my app has auth function and I want to prevent user go back to login page
my router is like this , ‘/index’ → ‘/login’ → ‘/(tabs)/xxx’
in login page , i use router.replace(‘/(tabs)/xxx’) but user could slide screen to ‘/index’ page , I want to set ‘/(tabs)/xxx’ as my first router history , how ?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.