-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
59 lines (52 loc) · 1.61 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import React from 'react';
//import { StyleSheet, Text, View, Image, ScrollView } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import indexScreen from './src/screens/indexSreen';
import ScreenOne from './src/screens/screenone';
import ScreenTwo from './src/screens/screentwo';
import AddItemScreen from './src/screens/additemscreen';
import ListViewScreen from './src/screens/ListViewScreen';
import ViewItemScreen from './src/screens/ViewItemScreen';
const Stack = createStackNavigator();
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="list">
<Stack.Screen
name="View"
component={ViewItemScreen}
options= {{title: "View Item"}}
/>
<Stack.Screen
name="list"
component={ListViewScreen}
options={{title: "List all items"}}
/>
<Stack.Screen
name="add"
component={AddItemScreen}
options={{title: "Add a new item"}}
/>
<Stack.Screen
name="index"
component={indexScreen}
options={{ title: "Computer Science BSc" }}
/>
<Stack.Screen
name="screenone"
component={ScreenOne}
options={{ title: "Screen 1" }}
/>
<Stack.Screen
name="screentwo"
component={ScreenTwo}
options={{ title: "Screen 2" }}
/>
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;
// const styles = StyleSheet.create({
// });