Closed vinodsptharsha closed 1 year ago
I figured out that the problem is coming from the BottomNavigation component.
I tried replacing both BottomNavigation and BottomNavigationTab, with TabBar and Tab respectively and it works as expected. The only indicator is at the wrong position. What might be causing BottomNavigation to behave differently?
Same Issue. Below is my code, any updates? `import React from 'react'; import { NavigationContainer } from '@react-navigation/native'; import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import { TabBar, Tab, Layout, Text } from '@ui-kitten/components';
const { Navigator, Screen } = createBottomTabNavigator();
const UsersScreen = () => ( <Layout style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
);
const OrdersScreen = () => ( <Layout style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
);
const BottomTabBar = ({ navigation, state }) => ( <BottomNavigation selectedIndex={state.index} onSelect={index => navigation.navigate(state.routeNames[index])}>
<BottomNavigationTab title='ORDERS'/>
);
const TabNavigator = () => ( <Navigator tabBar={props => <BottomTabBar {...props} />}>
As a temporary solution, I have replaced BottomNavigation
with the TabBar
component.
Tried with the latest code after clearing the npm cache and node modules but the issue still persists with the BottomNavigation.
🐛 Bug Report
I recently updated UI Kitten library to 5.3.0 from 5.1 (till this version no issues) and my bottom navigation tab bar is broken and it got pushed to the middle of the page. I am using expo-router (1.5.03) for navigation![image](https://user-images.githubusercontent.com/114156301/232469957-f1754726-447a-46d4-b999-974eec4318a0.png)
To Reproduce
Steps to reproduce the behavior:
const BottomTabs = ({navigation, state}) => {
}
export default function Layout() { return ( <Tabs screenOptions={{headerShown: false}} tabBar={props => <BottomTabs {...props} />}>