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.
25 lines
742 B
25 lines
742 B
// Navigation.js
|
|
|
|
import { createStackNavigator } from '@react-navigation/stack';
|
|
import { NavigationContainer } from '@react-navigation/native';
|
|
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
|
|
import Home from '../Screens/Home';
|
|
import Ajout from '../Screens/Ajout';
|
|
import Details from '../Screens/Details';
|
|
|
|
|
|
export default function Navigation() {
|
|
const BottomTabNavigator = createBottomTabNavigator();
|
|
const Stack = createStackNavigator();
|
|
|
|
return (
|
|
<NavigationContainer>
|
|
<Stack.Navigator initialRouteName="Home" >
|
|
<Stack.Screen name="Home" component={Home} />
|
|
<Stack.Screen name="Details" component={Ajout}/>
|
|
</Stack.Navigator>
|
|
</NavigationContainer>
|
|
)
|
|
}
|
|
|
|
|