Skip to content
This repository was archived by the owner on Nov 27, 2022. It is now read-only.

Commit 3e5fed7

Browse files
wuchangmingsatya164
authored andcommitted
fix: fix issue with triggering press while scrolling on iOS (#754)
1 parent ec18675 commit 3e5fed7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/TouchableItem.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ export default class TouchableItem extends React.Component<Props> {
5050
);
5151
} else {
5252
return (
53-
<TouchableOpacity {...rest} style={style} activeOpacity={pressOpacity}>
53+
<TouchableOpacity
54+
{...rest}
55+
rejectResponderTermination
56+
style={style}
57+
activeOpacity={pressOpacity}
58+
>
5459
{this.props.children}
5560
</TouchableOpacity>
5661
);

0 commit comments

Comments
 (0)