mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
change ActionIcon hitSlop
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user