Skip to content

Commit 8df917c

Browse files
IgorVanianmastermoo
authored andcommitted
3D Touch fix: Add "rejectResponderTermination" prop to Touchables (#267)
fix: unresponsiveness of buttons on devices with 3d touch
1 parent cd5c523 commit 8df917c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ActionButton.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ export default class ActionButton extends Component {
200200
]}
201201
>
202202
<Touchable
203+
rejectResponderTermination
203204
testID={this.props.testID}
204205
accessible={this.props.accessible}
205206
accessibilityLabel={this.props.accessibilityLabel}
@@ -301,6 +302,7 @@ export default class ActionButton extends Component {
301302
_renderTappableBackground() {
302303
return (
303304
<TouchableOpacity
305+
rejectResponderTermination
304306
activeOpacity={1}
305307
style={this.getOverlayStyles()}
306308
onPress={this.reset.bind(this)}

ActionButtonItem.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ export default class ActionButtonItem extends Component {
110110
>
111111
<View>
112112
<Touchable
113+
rejectResponderTermination
113114
testID={this.props.testID}
114115
accessibilityLabel={this.props.accessibilityLabel}
115116
background={touchableBackground(
@@ -181,6 +182,7 @@ export default class ActionButtonItem extends Component {
181182

182183
return (
183184
<TextTouchable
185+
rejectResponderTermination
184186
background={touchableBackground(
185187
this.props.nativeFeedbackRippleColor,
186188
this.props.fixNativeFeedbackRadius

0 commit comments

Comments
 (0)