change ActionIcon hitSlop

This commit is contained in:
ammarahm-ed
2020-09-27 12:25:54 +05:00
parent dbc342a16e
commit c67ad09c9a

View File

@@ -10,7 +10,9 @@ export const ActionIcon = ({
color,
customStyle,
size = SIZE.xxxl,
iconStyle={}
iconStyle = {},
left = 10,
right = 10,
}) => {
const [state, dispatch] = useTracked();
const {colors} = state;
@@ -18,7 +20,7 @@ export const ActionIcon = ({
return (
<PressableButton
onPress={onPress}
hitSlop={{top: 30, left: 30, right: 30, bottom: 30}}
hitSlop={{top: 30, left: left, right: right, bottom: 30}}
color="transparent"
selectedColor={colors.nav}
alpha={!colors.night ? -0.02 : 0.02}