react-native-navbar icon indicating copy to clipboard operation
react-native-navbar copied to clipboard

Increase Touch Area on Top of the left and Right Button

Open ismdcf opened this issue 9 years ago • 4 comments

Compared to native ios user experience (eg. photos app), if the user clicks above the nav button it responds but when using this library it does not. simulator screen shot aug 3 2016 12 48 56 pm

ismdcf avatar Aug 03 '16 07:08 ismdcf

Hi @ismdcf! Thanks for the issue. Would you mind to make a PR to fix it?

Kureev avatar Aug 03 '16 09:08 Kureev

@Kureev New to Git donna how to do pull request (NO Idea what it is ) :(

ismdcf avatar Aug 03 '16 10:08 ismdcf

I think you may find it interesting to read: https://help.github.com/articles/using-pull-requests/!

Kureev avatar Aug 03 '16 11:08 Kureev

<TouchableOpacity onPress={() => alert("hello")} hitSlop={{top: 20, bottom: 20, left: 50, right: 40}} > <Text>hello</Text> </TouchableOpacity>

----- The hitSlop prop will increase the touch area---- you can also apply on button.

YogeshSuthar007 avatar Feb 18 '19 10:02 YogeshSuthar007