react-native-gesture-handler 3.3.0-nightly-20260910-bcd4b522e → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1454,7 +1454,8 @@ static CATransform3D RNGHCenterScaleTransform(NSRect bounds, CGFloat scale)
1454
1454
  {
1455
1455
  if ([view isKindOfClass:[RNGestureHandlerButton class]]) {
1456
1456
  RNGestureHandlerButton *button = (RNGestureHandlerButton *)view;
1457
- return button.userEnabled;
1457
+ return button.userEnabled && button.pointerEvents != RNGestureHandlerPointerEventsBoxNone &&
1458
+ button.pointerEvents != RNGestureHandlerPointerEventsNone;
1458
1459
  }
1459
1460
 
1460
1461
  // Certain subviews such as RCTViewComponentView have been observed to have disabled
@@ -1501,7 +1502,9 @@ static CATransform3D RNGHCenterScaleTransform(NSRect bounds, CGFloat scale)
1501
1502
  if (!subview.isHidden && subview.alpha > 0) {
1502
1503
  CGPoint convertedPoint = [subview convertPoint:point fromView:self];
1503
1504
  UIView *hitView = [subview hitTest:convertedPoint withEvent:event];
1504
- if (hitView != nil && [self shouldHandleTouch:hitView atPoint:point]) {
1505
+ if (hitView != nil &&
1506
+ ([hitView isKindOfClass:[RNGestureHandlerButton class]] ||
1507
+ [self shouldHandleTouch:hitView atPoint:point])) {
1505
1508
  return hitView;
1506
1509
  }
1507
1510
  }
@@ -2,6 +2,11 @@
2
2
 
3
3
  import { State } from '../../State';
4
4
  import NodeManager from '../../web/tools/NodeManager';
5
+
6
+ /**
7
+ * @deprecated `LegacyGestureStateManagerType` is deprecated and will be removed in the future. Please use the new, hook-based API instead.
8
+ */
9
+
5
10
  export const GestureStateManager = {
6
11
  create(handlerTag) {
7
12
  return {
@@ -1 +1 @@
1
- {"version":3,"names":["State","NodeManager","GestureStateManager","create","handlerTag","begin","getHandler","activate","handler","state","UNDETERMINED","fail","end"],"sourceRoot":"../../../../src","sources":["handlers/gestures/gestureStateManager.web.ts"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,aAAa;AACnC,OAAOC,WAAW,MAAM,6BAA6B;AAGrD,OAAO,MAAMC,mBAAmB,GAAG;EACjCC,MAAMA,CAACC,UAAkB,EAA2B;IAClD,OAAO;MACLA,UAAU;MAEVC,KAAK,EAAEA,CAAA,KAAM;QACXJ,WAAW,CAACK,UAAU,CAACF,UAAU,CAAC,CAACC,KAAK,CAAC,CAAC;MAC5C,CAAC;MAEDE,QAAQ,EAAEA,CAAA,KAAM;QACd,MAAMC,OAAO,GAAGP,WAAW,CAACK,UAAU,CAACF,UAAU,CAAC;;QAElD;QACA;QACA,IAAII,OAAO,CAACC,KAAK,KAAKT,KAAK,CAACU,YAAY,EAAE;UACxCF,OAAO,CAACH,KAAK,CAAC,CAAC;QACjB;QAEAG,OAAO,CAACD,QAAQ,CAAC,IAAI,CAAC;MACxB,CAAC;MAEDI,IAAI,EAAEA,CAAA,KAAM;QACVV,WAAW,CAACK,UAAU,CAACF,UAAU,CAAC,CAACO,IAAI,CAAC,CAAC;MAC3C,CAAC;MAEDC,GAAG,EAAEA,CAAA,KAAM;QACTX,WAAW,CAACK,UAAU,CAACF,UAAU,CAAC,CAACQ,GAAG,CAAC,CAAC;MAC1C;IACF,CAAC;EACH;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["State","NodeManager","GestureStateManager","create","handlerTag","begin","getHandler","activate","handler","state","UNDETERMINED","fail","end"],"sourceRoot":"../../../../src","sources":["handlers/gestures/gestureStateManager.web.ts"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,aAAa;AACnC,OAAOC,WAAW,MAAM,6BAA6B;;AAErD;AACA;AACA;;AAUA,OAAO,MAAMC,mBAAmB,GAAG;EACjCC,MAAMA,CAACC,UAAkB,EAA2B;IAClD,OAAO;MACLA,UAAU;MAEVC,KAAK,EAAEA,CAAA,KAAM;QACXJ,WAAW,CAACK,UAAU,CAACF,UAAU,CAAC,CAACC,KAAK,CAAC,CAAC;MAC5C,CAAC;MAEDE,QAAQ,EAAEA,CAAA,KAAM;QACd,MAAMC,OAAO,GAAGP,WAAW,CAACK,UAAU,CAACF,UAAU,CAAC;;QAElD;QACA;QACA,IAAII,OAAO,CAACC,KAAK,KAAKT,KAAK,CAACU,YAAY,EAAE;UACxCF,OAAO,CAACH,KAAK,CAAC,CAAC;QACjB;QAEAG,OAAO,CAACD,QAAQ,CAAC,IAAI,CAAC;MACxB,CAAC;MAEDI,IAAI,EAAEA,CAAA,KAAM;QACVV,WAAW,CAACK,UAAU,CAACF,UAAU,CAAC,CAACO,IAAI,CAAC,CAAC;MAC3C,CAAC;MAEDC,GAAG,EAAEA,CAAA,KAAM;QACTX,WAAW,CAACK,UAAU,CAACF,UAAU,CAAC,CAACQ,GAAG,CAAC,CAAC;MAC1C;IACF,CAAC;EACH;AACF,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["State","tagMessage","setGestureState","handlerTag","state","globalThis","_setGestureStateSync","_setGestureStateAsync","Error","GestureStateManager","activate","ACTIVE","fail","FAILED","deactivate","END"],"sourceRoot":"../../../src","sources":["v3/gestureStateManager.ts"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,UAAU;AAChC,SAASC,UAAU,QAAQ,UAAU;AAQrC,MAAMC,eAAe,GAAGA,CAACC,UAAkB,EAAEC,KAAY,KAAK;EAC5D,SAAS;;EAET,IAAIC,UAAU,CAACC,oBAAoB,EAAE;IACnCD,UAAU,CAACC,oBAAoB,CAACH,UAAU,EAAEC,KAAK,CAAC;EACpD,CAAC,MAAM,IAAIC,UAAU,CAACE,qBAAqB,EAAE;IAC3CF,UAAU,CAACE,qBAAqB,CAACJ,UAAU,EAAEC,KAAK,CAAC;EACrD,CAAC,MAAM;IACL,MAAM,IAAII,KAAK,CAACP,UAAU,CAAC,6BAA6B,CAAC,CAAC;EAC5D;AACF,CAAC;AAED,OAAO,MAAMQ,mBAA4C,GAAG;EAC1DC,QAAQA,CAACP,UAAkB,EAAE;IAC3B,SAAS;;IACTD,eAAe,CAACC,UAAU,EAAEH,KAAK,CAACW,MAAM,CAAC;EAC3C,CAAC;EAEDC,IAAIA,CAACT,UAAkB,EAAE;IACvB,SAAS;;IACTD,eAAe,CAACC,UAAU,EAAEH,KAAK,CAACa,MAAM,CAAC;EAC3C,CAAC;EAEDC,UAAUA,CAACX,UAAkB,EAAE;IAC7B,SAAS;;IACTD,eAAe,CAACC,UAAU,EAAEH,KAAK,CAACe,GAAG,CAAC;EACxC;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["State","tagMessage","setGestureState","handlerTag","state","globalThis","_setGestureStateSync","_setGestureStateAsync","Error","GestureStateManager","activate","ACTIVE","fail","FAILED","deactivate","END"],"sourceRoot":"../../../src","sources":["v3/gestureStateManager.ts"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,UAAU;AAChC,SAASC,UAAU,QAAQ,UAAU;AAGrC,MAAMC,eAAe,GAAGA,CAACC,UAAkB,EAAEC,KAAY,KAAK;EAC5D,SAAS;;EAET,IAAIC,UAAU,CAACC,oBAAoB,EAAE;IACnCD,UAAU,CAACC,oBAAoB,CAACH,UAAU,EAAEC,KAAK,CAAC;EACpD,CAAC,MAAM,IAAIC,UAAU,CAACE,qBAAqB,EAAE;IAC3CF,UAAU,CAACE,qBAAqB,CAACJ,UAAU,EAAEC,KAAK,CAAC;EACrD,CAAC,MAAM;IACL,MAAM,IAAII,KAAK,CAACP,UAAU,CAAC,6BAA6B,CAAC,CAAC;EAC5D;AACF,CAAC;AAED,OAAO,MAAMQ,mBAA4C,GAAG;EAC1DC,QAAQA,CAACP,UAAkB,EAAE;IAC3B,SAAS;;IACTD,eAAe,CAACC,UAAU,EAAEH,KAAK,CAACW,MAAM,CAAC;EAC3C,CAAC;EAEDC,IAAIA,CAACT,UAAkB,EAAE;IACvB,SAAS;;IACTD,eAAe,CAACC,UAAU,EAAEH,KAAK,CAACa,MAAM,CAAC;EAC3C,CAAC;EAEDC,UAAUA,CAACX,UAAkB,EAAE;IAC7B,SAAS;;IACTD,eAAe,CAACC,UAAU,EAAEH,KAAK,CAACe,GAAG,CAAC;EACxC;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=GestureStateManagerTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["v3/types/GestureStateManagerTypes.ts"],"mappings":"","ignoreList":[]}
@@ -1,4 +1,14 @@
1
- import type { GestureStateManagerType } from './gestureStateManager';
1
+ /**
2
+ * @deprecated `LegacyGestureStateManagerType` is deprecated and will be removed in the future. Please use the new, hook-based API instead.
3
+ */
4
+ export interface GestureStateManagerType {
5
+ begin: () => void;
6
+ activate: () => void;
7
+ fail: () => void;
8
+ end: () => void;
9
+ /** @internal */
10
+ handlerTag: number;
11
+ }
2
12
  export declare const GestureStateManager: {
3
13
  create(handlerTag: number): GestureStateManagerType;
4
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"gestureStateManager.web.d.ts","sourceRoot":"","sources":["../../../../src/handlers/gestures/gestureStateManager.web.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAErE,eAAO,MAAM,mBAAmB;uBACX,MAAM,GAAG,uBAAuB;CA6BpD,CAAC"}
1
+ {"version":3,"file":"gestureStateManager.web.d.ts","sourceRoot":"","sources":["../../../../src/handlers/gestures/gestureStateManager.web.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,GAAG,EAAE,MAAM,IAAI,CAAC;IAChB,gBAAgB;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,mBAAmB;uBACX,MAAM,GAAG,uBAAuB;CA6BpD,CAAC"}
@@ -1,7 +1,3 @@
1
- export type GestureStateManagerType = {
2
- activate(handlerTag: number): void;
3
- fail(handlerTag: number): void;
4
- deactivate(handlerTag: number): void;
5
- };
1
+ import type { GestureStateManagerType } from './types/GestureStateManagerTypes';
6
2
  export declare const GestureStateManager: GestureStateManagerType;
7
3
  //# sourceMappingURL=gestureStateManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gestureStateManager.d.ts","sourceRoot":"","sources":["../../../src/v3/gestureStateManager.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC,CAAC;AAcF,eAAO,MAAM,mBAAmB,EAAE,uBAejC,CAAC"}
1
+ {"version":3,"file":"gestureStateManager.d.ts","sourceRoot":"","sources":["../../../src/v3/gestureStateManager.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAchF,eAAO,MAAM,mBAAmB,EAAE,uBAejC,CAAC"}
@@ -1,3 +1,3 @@
1
- import type { GestureStateManagerType } from './gestureStateManager';
1
+ import type { GestureStateManagerType } from './types/GestureStateManagerTypes';
2
2
  export declare const GestureStateManager: GestureStateManagerType;
3
3
  //# sourceMappingURL=gestureStateManager.web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gestureStateManager.web.d.ts","sourceRoot":"","sources":["../../../src/v3/gestureStateManager.web.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAYrE,eAAO,MAAM,mBAAmB,EAAE,uBAyBjC,CAAC"}
1
+ {"version":3,"file":"gestureStateManager.web.d.ts","sourceRoot":"","sources":["../../../src/v3/gestureStateManager.web.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAYhF,eAAO,MAAM,mBAAmB,EAAE,uBAyBjC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export type GestureStateManagerType = {
2
+ activate(handlerTag: number): void;
3
+ fail(handlerTag: number): void;
4
+ deactivate(handlerTag: number): void;
5
+ };
6
+ //# sourceMappingURL=GestureStateManagerTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GestureStateManagerTypes.d.ts","sourceRoot":"","sources":["../../../../src/v3/types/GestureStateManagerTypes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-gesture-handler",
3
- "version": "3.3.0-nightly-20260910-bcd4b522e",
3
+ "version": "3.3.0",
4
4
  "description": "Declarative API exposing native platform touch and gesture system to React Native",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -1,6 +1,17 @@
1
1
  import { State } from '../../State';
2
2
  import NodeManager from '../../web/tools/NodeManager';
3
- import type { GestureStateManagerType } from './gestureStateManager';
3
+
4
+ /**
5
+ * @deprecated `LegacyGestureStateManagerType` is deprecated and will be removed in the future. Please use the new, hook-based API instead.
6
+ */
7
+ export interface GestureStateManagerType {
8
+ begin: () => void;
9
+ activate: () => void;
10
+ fail: () => void;
11
+ end: () => void;
12
+ /** @internal */
13
+ handlerTag: number;
14
+ }
4
15
 
5
16
  export const GestureStateManager = {
6
17
  create(handlerTag: number): GestureStateManagerType {
@@ -1,11 +1,6 @@
1
1
  import { State } from '../State';
2
2
  import { tagMessage } from '../utils';
3
-
4
- export type GestureStateManagerType = {
5
- activate(handlerTag: number): void;
6
- fail(handlerTag: number): void;
7
- deactivate(handlerTag: number): void;
8
- };
3
+ import type { GestureStateManagerType } from './types/GestureStateManagerTypes';
9
4
 
10
5
  const setGestureState = (handlerTag: number, state: State) => {
11
6
  'worklet';
@@ -2,7 +2,7 @@ import { tagMessage } from '../utils';
2
2
  import type IGestureHandler from '../web/handlers/IGestureHandler';
3
3
  import GestureHandlerOrchestrator from '../web/tools/GestureHandlerOrchestrator';
4
4
  import NodeManager from '../web/tools/NodeManager';
5
- import type { GestureStateManagerType } from './gestureStateManager';
5
+ import type { GestureStateManagerType } from './types/GestureStateManagerTypes';
6
6
 
7
7
  function ensureHandlerAttached(handler: IGestureHandler) {
8
8
  if (!handler.attached) {
@@ -0,0 +1,5 @@
1
+ export type GestureStateManagerType = {
2
+ activate(handlerTag: number): void;
3
+ fail(handlerTag: number): void;
4
+ deactivate(handlerTag: number): void;
5
+ };