-
Notifications
You must be signed in to change notification settings - Fork 6
/
App.tsx
30 lines (28 loc) · 935 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 * as React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import { HomeStackParamList } from "./src/screens/types";
import { HomeScreen, ResultScreen, TestScreen } from "./src/screens";
const Stack = createNativeStackNavigator<HomeStackParamList>();
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator
screenOptions={{
headerShown: false,
animation: "slide_from_right",
}}>
<Stack.Screen name="Home" component={HomeScreen} />
<Stack.Screen
name="Test"
component={TestScreen}
options={{
headerShown: true,
header: () => null,
}}
/>
<Stack.Screen name="Result" component={ResultScreen} />
</Stack.Navigator>
</NavigationContainer>
);
}