mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
change ActionIcon hitSlop
This commit is contained in:
@@ -10,7 +10,9 @@ export const ActionIcon = ({
|
|||||||
color,
|
color,
|
||||||
customStyle,
|
customStyle,
|
||||||
size = SIZE.xxxl,
|
size = SIZE.xxxl,
|
||||||
iconStyle={}
|
iconStyle = {},
|
||||||
|
left = 10,
|
||||||
|
right = 10,
|
||||||
}) => {
|
}) => {
|
||||||
const [state, dispatch] = useTracked();
|
const [state, dispatch] = useTracked();
|
||||||
const {colors} = state;
|
const {colors} = state;
|
||||||
@@ -18,7 +20,7 @@ export const ActionIcon = ({
|
|||||||
return (
|
return (
|
||||||
<PressableButton
|
<PressableButton
|
||||||
onPress={onPress}
|
onPress={onPress}
|
||||||
hitSlop={{top: 30, left: 30, right: 30, bottom: 30}}
|
hitSlop={{top: 30, left: left, right: right, bottom: 30}}
|
||||||
color="transparent"
|
color="transparent"
|
||||||
selectedColor={colors.nav}
|
selectedColor={colors.nav}
|
||||||
alpha={!colors.night ? -0.02 : 0.02}
|
alpha={!colors.night ? -0.02 : 0.02}
|
||||||
@@ -28,7 +30,7 @@ export const ActionIcon = ({
|
|||||||
height: 40,
|
height: 40,
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
borderRadius:100,
|
borderRadius: 100,
|
||||||
...customStyle,
|
...customStyle,
|
||||||
}}>
|
}}>
|
||||||
<Icon name={name} style={iconStyle} color={color} size={size} />
|
<Icon name={name} style={iconStyle} color={color} size={size} />
|
||||||
|
|||||||
Reference in New Issue
Block a user