-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
28 lines (25 loc) · 996 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 { NavigationContainer } from '@react-navigation/native'
import { createNativeStackNavigator } from '@react-navigation/native-stack'
import Home from './screens/Home'
import Login from './screens/Login'
import Register from './screens/Register'
import Account from './screens/Account'
import Collection from './screens/Collection'
import Detail from './screens/Detail'
import Add from './screens/Add'
const Stack = createNativeStackNavigator()
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Home">
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="Login" component={Login} />
<Stack.Screen name="Register" component={Register} />
<Stack.Screen name="Account" component={Account} />
<Stack.Screen name="Collection" component={Collection} />
<Stack.Screen name="Detail" component={Detail} />
<Stack.Screen name="Add" component={Add} />
</Stack.Navigator>
</NavigationContainer>
)
}