refactor: rename gesturesEnabled to gestureEnabled for consistency

This commit is contained in:
satyajit.happy
2019-07-15 17:35:21 +02:00
parent 267d7c214f
commit 167056ba91
5 changed files with 12 additions and 12 deletions

View File

@@ -36,7 +36,7 @@ type Props = ViewProps & {
children: React.ReactNode;
overlayEnabled: boolean;
shadowEnabled: boolean;
gesturesEnabled: boolean;
gestureEnabled: boolean;
gestureResponseDistance?: {
vertical?: number;
horizontal?: number;
@@ -98,7 +98,7 @@ export default class Card extends React.Component<Props> {
static defaultProps = {
overlayEnabled: Platform.OS !== 'ios',
shadowEnabled: true,
gesturesEnabled: true,
gestureEnabled: true,
};
componentDidUpdate(prevProps: Props) {
@@ -473,7 +473,7 @@ export default class Card extends React.Component<Props> {
next,
overlayEnabled,
shadowEnabled,
gesturesEnabled,
gestureEnabled,
gestureDirection,
children,
styleInterpolator,
@@ -516,7 +516,7 @@ export default class Card extends React.Component<Props> {
>
<PanGestureHandler
ref={this.gestureRef}
enabled={layout.width !== 0 && gesturesEnabled}
enabled={layout.width !== 0 && gestureEnabled}
onGestureEvent={handleGestureEvent}
onHandlerStateChange={handleGestureEvent}
{...this.gestureActivationCriteria()}