Bottom Tab Styling
This commit is contained in:
parent
07a70e277e
commit
1daf6346f4
|
|
@ -1,5 +1,6 @@
|
|||
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
|
||||
import { NavigationContainer } from "@react-navigation/native";
|
||||
import { StyleSheet } from "react-native";
|
||||
import Icon from "react-native-vector-icons/Ionicons";
|
||||
|
||||
import Colors from "../constants/colors";
|
||||
|
|
@ -17,8 +18,10 @@ function Navigator() {
|
|||
headerStyle: {
|
||||
backgroundColor: Colors.accent500,
|
||||
},
|
||||
tabBarShowLabel: false,
|
||||
tabBarShowLabel: true,
|
||||
headerTitle: (props) => <LogoTitle {...props} />,
|
||||
tabBarStyle: styles.TabBar,
|
||||
tabBarActiveTintColor: Colors.accent500,
|
||||
}}
|
||||
>
|
||||
<Tab.Screen
|
||||
|
|
@ -62,4 +65,10 @@ function Navigator() {
|
|||
);
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
TabBar: {
|
||||
backgroundColor: Colors.primary500,
|
||||
},
|
||||
});
|
||||
|
||||
export default Navigator;
|
||||
|
|
|
|||
Reference in New Issue