Peakiq Blog
12 December 2025

{ top, right, bottom, left } → custom expansion per side.👉 It’s just invisible padding around the touch target.
import { Pressable, Text } from 'react-native';
export function CloseButton({ onPress }) {
return (
<Pressable
onPress={onPress}
hitSlop={10} // expands tappable area by 10dp all around
style={{ padding: 4 }}
accessibilityLabel="Close"
accessibilityRole="button"
>
<Text>✖</Text>
</Pressable>
);
}
Now, even if the user taps slightly outside the ✖ icon, it still works.
✅ Better usability
✅ Fewer missed taps
✅ No layout changes
Done ✅ — short and simple.