-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
28 lines (25 loc) · 819 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import React from 'react';
import ClientDetail from './screens/ClientDetail';
import AddClient from './screens/AddClient';
import ClientList from './screens/ClientList';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
const Stack = createStackNavigator();
function MyStack() {
return (
<Stack.Navigator
screenOptions={{ headerShown: false }}
initialRouteName="ClientList">
<Stack.Screen name="ClientDetail" component={ClientDetail} />
<Stack.Screen name="AddClient" component={AddClient} />
<Stack.Screen name="ClientList" component={ClientList} />
</Stack.Navigator>
);
}
export default function App() {
return (
<NavigationContainer>
<MyStack />
</NavigationContainer>
);
}