mirror of
https://github.com/status-im/react-native.git
synced 2025-02-05 06:04:15 +00:00
[ReactNative] Fix navigator touch-blocking logic
Summary: The logic for this is incorrect when the `state.transitionToIndex === 0`, and will return false and not capture the touch. @public Test Plan: Try to repro bugs on device and simulator
This commit is contained in:
parent
d68776d5de
commit
f6528171d0
@ -1290,7 +1290,7 @@ var Navigator = React.createClass({
|
|||||||
key={this.state.idStack[i]}
|
key={this.state.idStack[i]}
|
||||||
ref={'scene_' + i}
|
ref={'scene_' + i}
|
||||||
onStartShouldSetResponderCapture={() => {
|
onStartShouldSetResponderCapture={() => {
|
||||||
return !!this.state.transitionFromIndex || !!this.state.activeGesture;
|
return (this.state.transitionFromIndex != null) || (this.state.transitionFromIndex != null);
|
||||||
}}
|
}}
|
||||||
style={[styles.baseScene, this.props.sceneStyle, disabledSceneStyle]}>
|
style={[styles.baseScene, this.props.sceneStyle, disabledSceneStyle]}>
|
||||||
{React.cloneElement(child, {
|
{React.cloneElement(child, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user