-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
83 lines (78 loc) · 2.45 KB
/
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
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import HomeScreen from "./screens/HomeScreen";
import OnbordingScreen from "./screens/OnbordingScreen";
import OtpScreen from "./screens/OtpScreen";
import DashboardScreen from "./screens/DashboardScreen";
import { PaperProvider } from "react-native-paper";
import ReportScreen from "./screens/ReportScreen";
import VoteScreen from "./screens/VotesScreen";
//import { ClerkProvider } from "@clerk/clerk-expo";
import Constants from "expo-constants";
import SuccessScreen from "./screens/SuccessScreen";
// import TopAppBar from "./components/TopAppBar";
type RootStackParamList = {
HomeScreen: undefined;
OnboardingScreen: undefined;
OtpScreen: undefined;
DashboardScreen: undefined;
ReportScreen: undefined;
VotesScreen: undefined;
SuccessScreen: undefined;
};
const Stack = createNativeStackNavigator();
const options = {
headerStyle: {
backgroundColor: "#f4d41e",
},
headerTitleStyle: {
// color: "#fff",
},
};
export default function App() {
return (
<>
<PaperProvider>
<NavigationContainer>
<Stack.Navigator initialRouteName="HomeScreen">
<Stack.Screen
name="HomeScreen"
component={HomeScreen}
options={{ title: "Welcome to Sahakshak", ...options }}
/>
<Stack.Screen
name="OnboardingScreen"
component={OnbordingScreen}
options={{ title: "Login", ...options }}
/>
<Stack.Screen
name="OtpScreen"
component={OtpScreen}
options={{ title: "Enter OTP Here", ...options }}
/>
<Stack.Screen
name="DashboardScreen"
component={DashboardScreen}
/>
<Stack.Screen
name="ReportScreen"
component={ReportScreen}
options={{ title: "Case Report", ...options }}
/>
<Stack.Screen
name="VotesScreen"
component={VoteScreen}
options={{ title: "Votes", ...options }}
/>
</Stack.Navigator>
<Stack.Screen
name="SuccessScreen"
component={SuccessScreen}
options={{ ...options }}
/>
</NavigationContainer>
</PaperProvider>
</>
);
}
export { RootStackParamList };