-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInfoButton.js
More file actions
51 lines (48 loc) · 1015 Bytes
/
InfoButton.js
File metadata and controls
51 lines (48 loc) · 1015 Bytes
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
40
41
42
43
44
45
46
47
48
49
50
51
import React from 'react';
import { TouchableOpacity, Text } from 'react-native';
const InfoButton = ({ onPress }) => {
return (
<>
<TouchableOpacity
style={styles.button}
activeOpacity={0.6}
onPress={onPress}>
<Text style={styles.buttonText} pointerEvents="none">
?
</Text>
</TouchableOpacity>
</>
);
};
const styles = {
button: {
paddingVertical: 12,
paddingHorizontal: 14,
borderRadius: 50,
backgroundColor: 'rgba(229,229,229,1)',
boxShadow: '0 4px 6px rgba(0, 0, 0, 0.3)',
shadowColor: 'black',
shadowOffset: {
width: 0,
height: 4
},
elevation: 4,
shadowOpacity: 0.2,
shadowRadius: 2,
right: 15,
top: 132,
justifyContent: 'center',
alignItems: 'center',
flexShrink: 1,
flexDirection: 'row',
width: 50,
height: 50,
position: 'absolute',
},
buttonText: {
fontSize: 24,
color: 'rgba(0,0,0,1)',
position: 'absolute'
}
};
export default InfoButton;