-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
27 lines (25 loc) · 990 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
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import * as React from 'react';
import TabNavigator from './src/navigators/TabNavigator';
import MovieScreen from './src/screens/MovieDetailsScreen';
import SetBookingScreen from './src/screens/SetBookingScreen';
const Stack = createNativeStackNavigator();
function App(): JSX.Element {
return (
<NavigationContainer>
<Stack.Navigator screenOptions={{ headerShown: false }}>
<Stack.Screen name="Tab" component={TabNavigator} options={{
animation: "default"
}} />
<Stack.Screen name="MovieDetails" component={MovieScreen} options={{
animation: "slide_from_right"
}} />
<Stack.Screen name="SeatBooking" component={SetBookingScreen} options={{
animation: "slide_from_bottom"
}} />
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;