isGesturesEnabled -> isGestureEnabled
Name not ideal because option is gesturesEnabled, but grammar
This commit is contained in:
parent
f1eec36734
commit
d789cd35f4
|
@ -302,7 +302,7 @@ class StackViewLayout extends React.Component {
|
||||||
ref={this.panGestureRef}
|
ref={this.panGestureRef}
|
||||||
onGestureEvent={this.gestureEvent}
|
onGestureEvent={this.gestureEvent}
|
||||||
onHandlerStateChange={this._handlePanGestureStateChange}
|
onHandlerStateChange={this._handlePanGestureStateChange}
|
||||||
enabled={index > 0 && this._isGesturesEnabled()}
|
enabled={index > 0 && this._isGestureEnabled()}
|
||||||
>
|
>
|
||||||
<Animated.View
|
<Animated.View
|
||||||
style={[styles.container, this._transitionConfig.containerStyle]}
|
style={[styles.container, this._transitionConfig.containerStyle]}
|
||||||
|
@ -368,7 +368,7 @@ class StackViewLayout extends React.Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_isGesturesEnabled() {
|
_isGestureEnabled() {
|
||||||
const gesturesEnabled = this.props.transitionProps.scene.descriptor.options
|
const gesturesEnabled = this.props.transitionProps.scene.descriptor.options
|
||||||
.gesturesEnabled;
|
.gesturesEnabled;
|
||||||
return typeof gesturesEnabled === 'boolean'
|
return typeof gesturesEnabled === 'boolean'
|
||||||
|
@ -462,7 +462,7 @@ class StackViewLayout extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
_prepareGesture() {
|
_prepareGesture() {
|
||||||
if (!this._isGesturesEnabled()) {
|
if (!this._isGestureEnabled()) {
|
||||||
if (this.positionSwitch.__getValue() !== 1) {
|
if (this.positionSwitch.__getValue() !== 1) {
|
||||||
this.positionSwitch.setValue(1);
|
this.positionSwitch.setValue(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue