-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
30 lines (24 loc) · 1012 Bytes
/
App.tsx
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
29
30
import { StyleSheet, Text, View } from 'react-native'
import React from 'react'
import Home from './Screens/Home'
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import CoffeeDetail from './Screens/CoffeeDetail';
import OrderCompleted from './Screens/OrderCompleted';
import GetStarted from './Screens/GetStarted';
const Stack = createNativeStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName='GetStarted' screenOptions={{
headerShown: false,
}} >
<Stack.Screen name='GetStarted' component={GetStarted}/>
<Stack.Screen name='Home' component={Home}/>
<Stack.Screen name='CoffeeDetail' component={CoffeeDetail}/>
<Stack.Screen name='OrderCompleted' component={OrderCompleted}/>
</Stack.Navigator>
</NavigationContainer>
)
}
const styles = StyleSheet.create({})