-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
35 lines (27 loc) · 836 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
28
29
30
31
32
33
34
35
import { ScrollView, StyleSheet } from 'react-native';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { Fling } from './src/components/Fling';
import { LongPress } from './src/components/LongPress';
import { Pan } from './src/components/Pan';
import { Pinch } from './src/components/Pinch';
import { Rotation } from './src/components/Rotation';
import { Touches } from './src/components/Touches';
export default function App() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<ScrollView contentContainerStyle={style.scrollView}>
<Touches/>
<LongPress/>
<Fling/>
<Pan/>
<Rotation/>
<Pinch/>
</ScrollView>
</GestureHandlerRootView>
);
}
const style = StyleSheet.create({
scrollView: {
marginVertical: 10
},
});