[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:
Eric Vicenti 2015-06-08 11:23:03 -07:00
parent d68776d5de
commit f6528171d0
1 changed files with 1 additions and 1 deletions

View File

@ -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, {