import React from 'react'; import { Dimensions, StyleSheet, Text, View } from 'react-native'; import { ScrollView } from 'react-native-gesture-handler'; import BouncyBox from './GestureHandler/BouncyBox'; import FancyButton from './GestureHandler/FancyButton'; export default class GestureHandlerListScreen extends React.Component { static navigationOptions = { title: 'Gesture Handler List', }; render() { return ( LongPressGestureHandler, TapGestureHandler You can single tap, double tap, or long press these buttons! alert('Single tap')} onDoubleTap={() => alert('Double tap')} onLongPress={() => alert('Long press')}> Try this button out! alert('Single tap #2!')} onDoubleTap={() => alert('Double tap #2!')} onLongPress={() => alert('Long press #2!')}> A second fancy button! PanGestureHandler, RotationGestureHandler You can drag it left and right, and also use two fingers to rotate it, and it'll bounce back! ); } } const styles = StyleSheet.create({ container: { flex: 1, }, contentContainer: { paddingHorizontal: 20, }, title: { marginTop: 15, fontSize: Dimensions.get('window').width < 375 ? 20 : 25, marginBottom: 5, }, paragraph: { color: '#888', fontSize: 15, marginBottom: 20, }, });