-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathButton.js
54 lines (52 loc) · 1.35 KB
/
Button.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { View, Text, TouchableOpacity, Image } from 'react-native'
import React from 'react'
import { COLORS, FONTS, SHADOWS, SIZES } from '../constants'
export const CircleButton = ({ imgUrl, handlePress, ...props}) => {
return (
<TouchableOpacity
style={{
width: 40,
height: 40,
backgroundColor: COLORS.white,
position: 'absolute',
borderRadius: SIZES.extraLarge,
alignItems: 'center',
justifyContent: 'center',
...SHADOWS.light,
...props
}}
onPress={handlePress}
>
<Image
source={imgUrl}
resizeMode='contain'
style= {{ width: 24, height: 24}}
/>
</TouchableOpacity>
)
}
export const RectButton = ({ minWidth, fontSize, handlePress, ...props }) => {
return (
<TouchableOpacity
style={{
backgroundColor: COLORS.primary,
padding: SIZES.small,
borderRadius: SIZES.extraLarge,
minWidth: minWidth,
...props,
}}
onPress={handlePress}
>
<Text
style={{
fontFamily: FONTS.semiBold,
fontSize: fontSize,
color: COLORS.white,
textAlign: "center",
}}
>
Place a bid
</Text>
</TouchableOpacity>
);
};