-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
64 lines (57 loc) · 2.94 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
60
61
62
63
64
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { TourGuideProvider } from 'rn-tourguide';
import LoginScreen from './screens/LoginScreen';
import HomeScreen from './screens/HomeScreen';
import CreateAccount from './screens/CreateAccountScreen';
import CreateReportScreen from './screens/CreateReportScreen';
import ViewReportsScreen from './screens/ViewReportsScreen';
import ReportDetailsScreen from './screens/ReportDetailsScreen';
import OnboardingScreen from './screens/OnboardingScreen';
import SettingsScreen from './screens/SettingsScreen';
import NotificationsScreen from './screens/NotificationsScreen';
import LeaderboardScreen from './screens/LeaderboardScreen';
import EditReportScreen from './screens/EditReportScreen';
const Stack = createNativeStackNavigator();
export default function App() {
return (
<TourGuideProvider>
<NavigationContainer>
<Stack.Navigator screenOptions={{
headerStyle: {
backgroundColor: '#009387',
},
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
headerShown: false,
},
}} >
{/* <Stack.Screen name="Home" component={HomeScreen} options={{title: 'Home', headerShown: false, }}/> */}
<Stack.Screen name="Onboarding" component={OnboardingScreen} options={{headerShown: false}} />
<Stack.Screen options={{headerShown: false}} name="Login" component={LoginScreen} />
{/* <Stack.Screen name="CreateAccount" component={CreateAccount} options={{title: 'Create Account',}}/> */}
<Stack.Screen name="CreateAccount" component={CreateAccount} options={{headerShown: false}}/>
<Stack.Screen name="Home" component={HomeScreen} options={{title: 'Home', headerShown: false, }}/>
<Stack.Screen name="CreateReport" component={CreateReportScreen} options={{ headerLeft: null, title: 'Create Report', }}/>
<Stack.Screen name="ViewReports" component={ViewReportsScreen} options={{title: 'View Reports',}}/>
<Stack.Screen name="ReportDetails" component={ReportDetailsScreen} options={{title: 'Report Details',}}/>
<Stack.Screen name="EditReport" component={EditReportScreen} options={{title: 'Edit Report',}}/>
<Stack.Screen name="Settings" component={SettingsScreen} options={{headerShown: false,}} />
<Stack.Screen name="Notifications" component={NotificationsScreen} options={{headerShown: false,}} />
<Stack.Screen name="Leaderboard" component={LeaderboardScreen} options={{headerShown: false,}} />
</Stack.Navigator>
</NavigationContainer>
</TourGuideProvider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});