File-based routing is great but it lacks routing which would otherwise use React states. This is similar to how Spotify navigates through its app. A global Navigation context which stores information about the state of the app (Views getting expanded/collapsed) and pushes the data to the navigation history.
This is especially useful if the app uses non-file routes, that is routes which do not generate any component but rather performs a function.