import React, { useState } from 'react';
import { View, Text, TouchableOpacity, TouchableHighlight, StyleSheet } from 'react-native';
export default function TouchableButtonsScreen() {
const [message, setMessage] = useState('');
return (
<View style={styles.container}>
{/* TODO: Add TouchableOpacity button here */}
{/* TODO: Add TouchableHighlight button here */}
<Text style={styles.message}>{message}</Text>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
padding: 20
},
button: {
paddingVertical: 12,
paddingHorizontal: 24,
marginVertical: 10,
borderRadius: 6
},
buttonText: {
color: 'white',
fontSize: 16
},
message: {
marginTop: 20,
fontSize: 18
}
});