import { StyleSheet, Text, View,TextInput, TouchableOpacity} from 'react-native';
export default function App() {
return (
<View style={{
marginTop:40,
height: 300,
backgroundColor: 'powderblue',
}}>
<TextInput style={{
backgroundColor: 'red',
}}/>
<View style={{flexDirection:'row'}}>
<TouchableOpacity
style={styles.button}
>
<Text
style = {styles.text}>Press Here</Text>
</TouchableOpacity>
<TouchableOpacity
style={styles.button}
>
<Text
style = {styles.text}>Press Here</Text>
</TouchableOpacity>
</View>
</View>
);
}
const styles = StyleSheet.create({
button: {
alignItems: 'center',
backgroundColor: 'blue',
width: 100,
margin:5,
},
text: {
color: 'white'
}
});