isGesturesEnabled -> isGestureEnabled

Name not ideal because option is gesturesEnabled, but grammar
This commit is contained in:
Brent Vatne 2018-12-08 18:08:46 -08:00
parent f1eec36734
commit d789cd35f4
1 changed files with 3 additions and 3 deletions

View File

@ -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);
} }