-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
59 lines (46 loc) · 1.53 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
/* By hitting 'rnfes' u can get general preset of tsx file
====================================================================================================
import { StyleSheet, Text, View } from 'react-native'
import React from 'react'
const App = () => {
return (
<View>
<Text>App</Text>
</View>
)
}
export default App
const styles = StyleSheet.create({})
====================================================================================================
*/
import { NavigationContainer } from '@react-navigation/native'
import { createNativeStackNavigator } from "@react-navigation/native-stack"
import React, { useEffect } from 'react'
import DetailsScreen from './src/screens/DetailsScreen'
import PaymentScreen from './src/screens/PaymentScreen'
import TabNavigator from './src/navigators/TabNavigator'
const Stack = createNativeStackNavigator()
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator screenOptions={{headerShown: false}}>
<Stack.Screen
name='Tab'
component={TabNavigator}
options={{animation: 'slide_from_bottom'}}>
</Stack.Screen>
<Stack.Screen
name='Details'
component={DetailsScreen}
options={{animation: 'slide_from_bottom'}}>
</Stack.Screen>
<Stack.Screen
name='Payment'
component={PaymentScreen}
options={{animation: 'slide_from_bottom'}}>
</Stack.Screen>
</Stack.Navigator>
</NavigationContainer>
)
}
export default App;