one icon indicating copy to clipboard operation
one copied to clipboard

Tabs not working properly

Open telcy opened this issue 1 year ago • 1 comments

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

telcy avatar Oct 12 '24 16:10 telcy

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.

telcy avatar Oct 12 '24 16:10 telcy

I think we fixed this

natew avatar Jan 24 '25 05:01 natew