react native making bigger hitbox

Solutions on MaxInterview for react native making bigger hitbox by the best coders in the world

showing results for - "react native making bigger hitbox"
Page
12 Jan 2021
1//hitSlop: makes a bigger hitbox 20px top, 20px bottom, etc..
2//but remember, this extra pixels you're adding, HAVE to be inside your component's parent area
3<TouchableOpacity onPress={onBtn1Pressed} hitSlop={{top: 20, bottom: 20, left: 50, right: 50}}>
4