You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.1 KiB
26 lines
1.1 KiB
import {createBottomTabNavigator} from "@react-navigation/bottom-tabs";
|
|
import {NavigationContainer} from "@react-navigation/native";
|
|
import ArtistPage from "./ArtistePage";
|
|
import {AntDesign, Ionicons} from '@expo/vector-icons';
|
|
import {StyleSheet} from "react-native";
|
|
import SettingsPage from "./SettingsPage";
|
|
|
|
export default function Navigation() {
|
|
const BottomTabNavigator = createBottomTabNavigator();
|
|
return (
|
|
<NavigationContainer>
|
|
<BottomTabNavigator.Navigator initialRouteName="Home">
|
|
<BottomTabNavigator.Screen name="Home" component={ArtistPage} options={{
|
|
title: 'Home',
|
|
tabBarIcon: () => (<AntDesign name="home" size={24} color="black" />)
|
|
}}/>
|
|
<BottomTabNavigator.Screen name="Settings" component={SettingsPage} options={{
|
|
title: 'Settings',
|
|
tabBarIcon: () => (<Ionicons name="settings-outline" size={24} color="black" />)
|
|
}}/>
|
|
</BottomTabNavigator.Navigator>
|
|
</NavigationContainer>
|
|
)
|
|
}
|
|
|