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

Tab freezes when changing name [Android] #968

Open
JoseBuendiaDigio opened this issue Feb 6, 2025 · 0 comments
Open

Tab freezes when changing name [Android] #968

JoseBuendiaDigio opened this issue Feb 6, 2025 · 0 comments

Comments

@JoseBuendiaDigio
Copy link

JoseBuendiaDigio commented Feb 6, 2025

Environment

In 6.6.0 It works
In 6.6.1 It doesn't works

Description

In 6.6.0 when you change a Tab.Screen name it resolved changing to the first tab without problems
In 6.6.1 when you change a Tab.Screen name it resolves it to the first tab but tab is completely freezen

Reproducible Demo

const Tab = createMaterialTopTabNavigator();

const OrdersTabs = (_props: StackRootNavigatorProps<StackRootScreens.ReferencesTabsScreen>) => {
    const referencesReferences = useReferences(state => state.referencesReferences);

    return (
        <Tab.Navigator
        >
            <Tab.Screen
                key={'addReferences'}
                name={'addReferences'}
                component={AddReferenceReferences}
            />
            <Tab.Screen
                key={'totalReferences'}
                name={
                    !referencesReferences.length ? 'totalReferences' : 'totalReferencesWithQuantity'
                }
                component={TotalReferenceReferences}
            />
        </Tab.Navigator>
    );
};
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