Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabs not working properly #163

Open
telcy opened this issue Oct 12, 2024 · 1 comment
Open

Tabs not working properly #163

telcy opened this issue Oct 12, 2024 · 1 comment

Comments

@telcy
Copy link

telcy commented Oct 12, 2024

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

Screen.Recording.2024-10-12.at.23.23.33.mov
@telcy
Copy link
Author

telcy commented Oct 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant