-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Touches freeze when i navigate between tabs in my custom bottom tabs component #9242
Comments
The versions mentioned in the issue for the following packages differ from the latest versions on npm:
Can you verify that the issue still exists after upgrading to the latest versions of these packages? |
yes it still exist after upgrading the packages |
Exactly the same probleme drive me mad since this morning |
@abdallaemadeldin did you find any solution ? |
when you navigate back to the first screen the button on the screen to go to setting doesn't work anymore |
I think it's the same issue #9241 |
yes |
@app-rc yes it's the same any solutions? |
not yet |
@react-navigation/bottom-tabs downgraded to 5.11.3 worked for me |
@Maxime-Fleurant thanks it worked! |
I am also having the same issue with the drawer. Is it related to this? |
Is there something specific I need to do after upgrading to the fix? This is my "@react-navigation/core": {
"version": "5.15.1",
},
"@react-navigation/drawer": {
"version": "5.12.2",
}, Downgrading drawer to |
This is still happening for me on @react-navigation/material-top-tabs, when I press the active tab, the import { NavigationContainer } from '@react-navigation/native';
import React from 'react';
import {
KeyboardAvoidingView,
Platform,
Text,
View
} from 'react-native';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs';
const TabNavigator = createMaterialTopTabNavigator<{
Tab1: undefined;
Tab2: undefined;
Tab3: undefined;
Tab4: undefined;
}>();
const Tab1 = () => (
<View
style={{
flex: 1,
justifyContent: 'center',
alignItems: 'center'
}}
>
<Text>Tab 1</Text>
</View>
);
const Tab2 = () => (
<View
style={{
flex: 1,
justifyContent: 'center',
alignItems: 'center'
}}
>
<Text>Tab 2</Text>
</View>
);
const Tab3 = () => (
<View
style={{
flex: 1,
justifyContent: 'center',
alignItems: 'center'
}}
>
<Text>Tab 3</Text>
</View>
);
const Tab4 = () => (
<View
style={{
flex: 1,
justifyContent: 'center',
alignItems: 'center'
}}
>
<Text>Tab 4</Text>
</View>
);
const App: React.FunctionComponent = () => {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<NavigationContainer>
<KeyboardAvoidingView
style={{ flex: 1 }}
behavior={Platform.OS === 'ios' ? 'padding' : undefined}
>
<TabNavigator.Navigator
tabBarPosition="bottom"
screenOptions={{
tabBarActiveTintColor: '#3700B3',
tabBarInactiveTintColor: '#D0D1D5',
swipeEnabled: true,
tabBarStyle: {
shadowColor: '#000',
shadowOffset: {
width: 0,
height: 0
},
shadowOpacity: 0.1,
shadowRadius: 5,
elevation: 4,
backgroundColor: '#fff',
borderTopWidth: 0
},
tabBarLabelStyle: {
textTransform: 'capitalize'
},
tabBarIndicatorStyle: {
top: 0
}
}}
>
<TabNavigator.Screen
name="Tab1"
component={Tab1}
options={{
tabBarLabel: 'Tab 1'
}}
/>
<TabNavigator.Screen
name="Tab2"
component={Tab2}
options={{
tabBarLabel: 'Tab 2'
}}
/>
<TabNavigator.Screen
name="Tab3"
component={Tab3}
options={{
tabBarLabel: 'Tab 3'
}}
/>
<TabNavigator.Screen
name="Tab4"
component={Tab4}
options={{
tabBarLabel: 'Tab 4'
}}
/>
</TabNavigator.Navigator>
</KeyboardAvoidingView>
</NavigationContainer>
</GestureHandlerRootView>
);
};
export default App; |
Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro. |
Current Behavior
i have create my custom bottom tabs component and i follow the guides in docs but when i navigate from tab to another the first tab stop responding to touches
Expected Behavior
when i navigate from tab to another and go back the tab must work fine and detect my touches
Your Environment
The text was updated successfully, but these errors were encountered: