-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathApp.tsx
33 lines (30 loc) · 1.15 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
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createStackNavigator } from "@react-navigation/stack";
import { Home } from "./src/screens/Home";
import { ScrollableModalReanimated } from "./src/screens/ScrollableModalReanimated";
import { ScrollableModalCallbacks } from "./src/screens/ScrollableModalCallbacks";
import { Modal } from "./src/screens/Modal";
const Stack = createStackNavigator();
export default () => (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="home" component={Home} options={{ title: "Home" }} />
<Stack.Screen
name="scrollableModalReanimated"
component={ScrollableModalReanimated}
options={{ title: "Scrollable Modal Reanimated", presentation: "modal" }}
/>
<Stack.Screen
name="scrollableModalCallbacks"
component={ScrollableModalCallbacks}
options={{ title: "Scrollable Modal Callbacks", presentation: "modal" }}
/>
<Stack.Screen
name="modal"
component={Modal}
options={{ title: "Modal", presentation: "modal" }}
/>
</Stack.Navigator>
</NavigationContainer>
);