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

Will there be an update to support Expo router V2? #7

Open
vinodsptharsha opened this issue Sep 6, 2023 · 8 comments
Open

Will there be an update to support Expo router V2? #7

vinodsptharsha opened this issue Sep 6, 2023 · 8 comments

Comments

@vinodsptharsha
Copy link

Currently, the package requires Expo router V1.5 and Expo router V2 released and is stable. I am desperate for TopTab support with the expo router. Are you going to update this package to support V2?

@BG687
Copy link

BG687 commented Sep 12, 2023

Yes - this would be awesome

@BoavistaLudwig
Copy link

@vinodsptharsha What issue do you have with Expo Router V2?

@RobertUpchurch
Copy link

I am able to use this with V2 but do get a decent amount of warnings as its dependencies are outdated

@vinodsptharsha
Copy link
Author

@BoavistaLudwig Unable to install as dependencies are outdated.

@enkemande
Copy link

enkemande commented Nov 7, 2023

You can setup top tab for expo router v2 like so.

import { withLayoutContext } from "expo-router";

const Tab = createMaterialTopTabNavigator();

const { Navigator } = createMaterialTopTabNavigator();

export const TopTab = withLayoutContext(Navigator);

and then export and use it in your layout like you would use Stack navigation from expo router

import React from "react";
import { TopTab } from "../../../layouts/TopTab";

const Layout = () => {
  return <TopTab />;
};

export default Layout;

@pencilcheck
Copy link

the example given is for material top tab, how about expo-router-top-tabs?

@Aftab3gamersden
Copy link

How can I make the Top Tab Scroll upwards whenever I scroll up on the screen.

For example: The YouTube Channel Screen has a header, then below it a similar Top Tab Navigation Bar and then below the bar the content according to the tab of Top Tab Nav. When u scroll on that screen the content and the top tab and the header all move up

@Aftab3gamersden
Copy link

How can I make the Top Tab Scroll upwards whenever I scroll up on the screen.

For example: The YouTube Channel Screen has a header, then below it a similar Top Tab Navigation Bar and then below the bar the content according to the tab of Top Tab Nav. When u scroll on that screen the content and the top tab and the header all move up

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

7 participants