mastermoo / react-native-action-button

customizable multi-action-button component for react-native
MIT License
2.52k stars 571 forks source link

Not working on iPhone 6 7 8 (3D touch) #265

Open IgorVanian opened 6 years ago

IgorVanian commented 6 years ago

The buttons are not tappable unless pressed in a specific way (reproducible in emulator). I think it's a React Native's panResponder issue but is there a workaround?

Edit: When using onPressIn or onPressOut instead of onPress, it works well.

Edit 2: Actually, the real fix seems to be "rejectResponderTermination" property passed to every Touchable element inside ActionButton which eliminates the 3D touch problem.

MaxInMoon commented 6 years ago

@IgorVanian is the "real fix" can be transformed to a pull-request?

IgorVanian commented 6 years ago

Done.

https://github.com/mastermoo/react-native-action-button/pull/267