Answers for "react native making bigger hitbox"

0

react native making bigger hitbox

//hitSlop: makes a bigger hitbox 20px top, 20px bottom, etc..
//but remember, this extra pixels you're adding, HAVE to be inside your component's parent area
<TouchableOpacity onPress={onBtn1Pressed} hitSlop={{top: 20, bottom: 20, left: 50, right: 50}}>
Posted by: Guest on July-02-2020

Code answers related to "react native making bigger hitbox"

Code answers related to "Javascript"

Browse Popular Code Answers by Language