-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBtn.js
39 lines (31 loc) · 850 Bytes
/
Btn.js
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
36
37
38
39
import React from 'react';
import {StyleSheet, TouchableOpacity, Text, View, Alert} from 'react-native';
const pressed = () => {
Alert.alert("Requestig Reservation")
}
export default function Btn({text, onPress}){
return(
<TouchableOpacity onPress={pressed}>
<View style={styles.button}>
<Text style={styles.buttonText}>{text}</Text>
</View>
</TouchableOpacity>
)
}
const styles = StyleSheet.create({
button: {
position:"relative",
borderRadius: 30,
paddingVertical: 14,
paddingHorizontal: 10,
backgroundColor: "#BF4E09",
top: 70
},
buttonText: {
color: 'white',
fontWeight: 'bold',
textTransform: 'uppercase',
fontSize: 16,
textAlign: 'center',
}
})