I am building a react native app with expo and I have a folder structure like this
app/
(tabs)/
_layout.tsx
(home)/
index.tsx
(profile)/
index.tsx
(settings)/
index.tsx
I want to set the (home)/index as the initial screen when the app is opened, I added this to app/_layout.tsx but it is not working
<Tabs
initialRouteName="(home)" // (home)/index is also not working
...
>
....
</Tabs>
how can I set the initial tab when the app is opened?