mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +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]}
|
||||
ref={'scene_' + i}
|
||||
onStartShouldSetResponderCapture={() => {
|
||||
return !!this.state.transitionFromIndex || !!this.state.activeGesture;
|
||||
return (this.state.transitionFromIndex != null) || (this.state.transitionFromIndex != null);
|
||||
}}
|
||||
style={[styles.baseScene, this.props.sceneStyle, disabledSceneStyle]}>
|
||||
{React.cloneElement(child, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user