-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathScavengerHuntEnter.tsx
39 lines (37 loc) · 1.07 KB
/
ScavengerHuntEnter.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
import { createStackNavigator } from "@react-navigation/stack";
import React from "react";
import ClueQuestion from "./ClueQuestion";
import ScavengerHunt from "./ScavengerHunt";
import MainQuestion from "./MainQuestion";
export type RootStackParamList = {
Scavenger_Hunt: undefined;
Clue: {
clue: string;
clueAnswer: string;
nextQuestion: string;
nextAnswer: string;
clue_num: number;
};
Question: {
question: string;
answer: string;
question_num: number;
};
};
export default function ScavengerHuntEnter() {
// This method instantiates and creates a new StackNavigator
const RootStack = createStackNavigator<RootStackParamList>();
return (
<RootStack.Navigator screenOptions={{ headerShown: false }}>
<RootStack.Screen
name="Scavenger_Hunt"
component={ScavengerHunt}
></RootStack.Screen>
<RootStack.Screen name="Clue" component={ClueQuestion}></RootStack.Screen>
<RootStack.Screen
name="Question"
component={MainQuestion}
></RootStack.Screen>
</RootStack.Navigator>
);
}