forked from redwanul10/React-Native-Animations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
115 lines (106 loc) · 3.29 KB
/
App.js
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/
import React from 'react';
import {Platform, StyleSheet} from 'react-native';
import TwitterLikeAnimation from './src/TwitterLike';
import Slider from './src/slider/slider';
import AddToCart from './src/addToCart';
import BkashPayment from './src/bKashPayment';
import DeleteChat from './src/chatDelete';
import GoogleCalendar from './src/googleCalendar';
import PullToRefresh from './src/pullToRefresh';
import SwipeToDelete from './src/swipeToDelete';
import WhatsappHeader from './src/whatsAppSearch';
import Youtube from './src/youtube';
import ProductPage from './src/addToCart/productPage';
import {NavigationContainer} from '@react-navigation/native';
// import {
// createNativeStackNavigator,
// TransitionPresets,
// } from '@react-navigation/native-stack';
import {createStackNavigator, TransitionPresets} from '@react-navigation/stack';
import HomeScreen from './src/HomeScreen';
import SharedElementExample from './src/sharedElementTransitions/addToCart';
import SwipeSlider from './src/SwipeSlider';
const IS_IOS = Platform.OS === 'ios';
const screenOptions = IS_IOS
? {}
: {
...TransitionPresets.SlideFromRightIOS,
};
const Stack = createStackNavigator();
const App = () => {
return (
<>
<NavigationContainer>
<Stack.Navigator
screenOptions={screenOptions}
// initialRouteName="Pizza Slider"
>
<Stack.Screen name="Home" component={HomeScreen} />
<Stack.Screen name="Slider" component={Slider} />
<Stack.Screen
name="Swipe Slider"
component={SwipeSlider}
options={{headerShown: false}}
/>
<Stack.Screen
options={{headerShown: false}}
name="Whatsapp Header"
component={WhatsappHeader}
/>
<Stack.Screen
options={{headerShown: false}}
name="Swipe To Delete"
component={SwipeToDelete}
/>
<Stack.Screen name="Bkash Payment" component={BkashPayment} />
<Stack.Screen
options={{headerShown: false}}
name="Ecommerce Shared Element Transision"
component={SharedElementExample}
/>
<Stack.Screen name="Product Page" component={ProductPage} />
<Stack.Screen name="Delete Chat" component={DeleteChat} />
<Stack.Screen name="Google Calendar" component={GoogleCalendar} />
<Stack.Screen
options={{headerShown: false}}
name="Pull to Refresh"
component={PullToRefresh}
/>
<Stack.Screen
options={{headerShown: false}}
name="Youtube Player"
component={Youtube}
/>
<Stack.Screen name="Twitter Like" component={TwitterLikeAnimation} />
</Stack.Navigator>
</NavigationContainer>
</>
);
};
const styles = StyleSheet.create({
menuItem: {
padding: 20,
borderBottomWidth: 1,
borderBottomColor: '#dcdcdc',
flexDirection: 'row',
alignItems: 'center',
},
menuItemIcon: {
fontSize: 24,
fontWeight: 'bold',
color: '#000',
marginRight: 20,
},
menuItemName: {
fontSize: 20,
fontWeight: 'bold',
color: '#000',
},
});
export default App;