-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
51 lines (48 loc) · 1.38 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
import 'react-native-gesture-handler';
import { StyleSheet } from 'react-native';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
import { threads } from './constants';
import ThreadStack from './components/ThreadStack';
const CatchUp = () => {
return (
<SafeAreaProvider>
<SafeAreaView style={styles.root}>
<GestureHandlerRootView style={{ flex: 1 }}>
<ThreadStack
data={threads}
onSwipeLeft={(item) => {
// console.warn('left, ', item.id);
}}
onSwipeRight={(item) => {
// console.warn('right', item.id);
}}
allowSwipe
showActionButtons
stackEnd={{
emoji: '🙌',
heading: 'All Caught Up.',
showReset: true,
}}
header={{
visible: true,
showNumberOfThreadsLeft: true,
showUndoButton: true,
showResetIconButton: true,
}}
/>
</GestureHandlerRootView>
</SafeAreaView>
</SafeAreaProvider>
);
};
export default CatchUp;
const styles = StyleSheet.create({
root: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: '#81438E',
padding: 10,
},
});