import React from 'react'; import { Alert, Button, Platform, StyleSheet, Text, TouchableHighlight, TouchableNativeFeedback, TouchableOpacity, TouchableWithoutFeedback, View, } from 'react-native'; const styles = StyleSheet.create({ container: { alignItems: 'center', paddingTop: 60, }, button: { alignItems: 'center', backgroundColor: '#2196F3', marginBottom: 30, width: 260, }, buttonText: { color: 'white', padding: 20, }, }); class Touchables extends React.Component { onPressButton() { Alert.alert('You pressed THE button'); } onLongPressButton() { Alert.alert('You long-pressed the button'); } render() { return ( TouchableHighlight TouchableOpacity TouchableNativeFeedback TouchableWithoutFeedback Touchable with Long Press ); } } export default Touchables;