one
one copied to clipboard
Tabs not working properly
I tried to set up a minimal example for tabs and for some reason I am unable to get it working properly.
https://github.com/telcy/one-tabs-example
https://github.com/user-attachments/assets/36fd4223-65fb-452c-a8f7-bf5662735df4
Seems setting href within options of Tabs.Screen does fix the issue.
<Tabs screenOptions={{ tabBarActiveTintColor: "blue" }}>
<Tabs.Screen name="feed" options={{ href: "/feed" }} />
<Tabs.Screen
name="notifications"
options={{ href: "/notifications" }}
/>
<Tabs.Screen name="profile" options={{ href: "/profile" }} />
</Tabs>
I just followed the tabs example on https://onestack.dev/docs/routing-layouts and it does not mention to use href.
I think we fixed this