react-native-gesture-handler 2.33.0 → 2.33.1
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.
- package/android/paper/src/main/java/com/facebook/react/viewmanagers/RNGestureHandlerRootViewManagerDelegate.java +3 -0
- package/android/paper/src/main/java/com/facebook/react/viewmanagers/RNGestureHandlerRootViewManagerInterface.java +2 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandler.kt +9 -3
- package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerOrchestrator.kt +5 -8
- package/android/src/main/java/com/swmansion/gesturehandler/core/HoverGestureHandler.kt +1 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt +2 -1
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootViewManager.kt +6 -0
- package/apple/RNGestureHandler.mm +15 -3
- package/apple/RNGestureHandlerButtonComponentView.mm +6 -0
- package/lib/commonjs/handlers/createHandler.js +1 -1
- package/lib/commonjs/handlers/createHandler.js.map +1 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/Wrap.js +10 -0
- package/lib/commonjs/handlers/gestures/GestureDetector/Wrap.js.map +1 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/attachHandlers.js +8 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/attachHandlers.js.map +1 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/index.js +5 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/index.js.map +1 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/updateHandlers.js +7 -0
- package/lib/commonjs/handlers/gestures/GestureDetector/updateHandlers.js.map +1 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/useMountReactions.js +22 -3
- package/lib/commonjs/handlers/gestures/GestureDetector/useMountReactions.js.map +1 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/utils.js +35 -6
- package/lib/commonjs/handlers/gestures/GestureDetector/utils.js.map +1 -1
- package/lib/commonjs/handlers/gestures/gesture.js +8 -0
- package/lib/commonjs/handlers/gestures/gesture.js.map +1 -1
- package/lib/commonjs/handlers/gestures/gestureComposition.js +14 -2
- package/lib/commonjs/handlers/gestures/gestureComposition.js.map +1 -1
- package/lib/commonjs/handlers/gestures/reanimatedWrapper.js +23 -0
- package/lib/commonjs/handlers/gestures/reanimatedWrapper.js.map +1 -1
- package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.ts +11 -2
- package/lib/commonjs/web/tools/GestureHandlerWebDelegate.js +5 -1
- package/lib/commonjs/web/tools/GestureHandlerWebDelegate.js.map +1 -1
- package/lib/commonjs/web/tools/KeyboardEventManager.js +17 -12
- package/lib/commonjs/web/tools/KeyboardEventManager.js.map +1 -1
- package/lib/commonjs/web/tools/WheelEventManager.js +15 -5
- package/lib/commonjs/web/tools/WheelEventManager.js.map +1 -1
- package/lib/module/handlers/createHandler.js +1 -1
- package/lib/module/handlers/createHandler.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/Wrap.js +12 -2
- package/lib/module/handlers/gestures/GestureDetector/Wrap.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/attachHandlers.js +9 -2
- package/lib/module/handlers/gestures/GestureDetector/attachHandlers.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/index.js +5 -1
- package/lib/module/handlers/gestures/GestureDetector/index.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/updateHandlers.js +8 -1
- package/lib/module/handlers/gestures/GestureDetector/updateHandlers.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/useMountReactions.js +22 -3
- package/lib/module/handlers/gestures/GestureDetector/useMountReactions.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/utils.js +34 -6
- package/lib/module/handlers/gestures/GestureDetector/utils.js.map +1 -1
- package/lib/module/handlers/gestures/gesture.js +8 -0
- package/lib/module/handlers/gestures/gesture.js.map +1 -1
- package/lib/module/handlers/gestures/gestureComposition.js +14 -2
- package/lib/module/handlers/gestures/gestureComposition.js.map +1 -1
- package/lib/module/handlers/gestures/reanimatedWrapper.js +22 -0
- package/lib/module/handlers/gestures/reanimatedWrapper.js.map +1 -1
- package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.ts +11 -2
- package/lib/module/web/tools/GestureHandlerWebDelegate.js +5 -1
- package/lib/module/web/tools/GestureHandlerWebDelegate.js.map +1 -1
- package/lib/module/web/tools/KeyboardEventManager.js +17 -12
- package/lib/module/web/tools/KeyboardEventManager.js.map +1 -1
- package/lib/module/web/tools/WheelEventManager.js +15 -5
- package/lib/module/web/tools/WheelEventManager.js.map +1 -1
- package/lib/typescript/handlers/createHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/Wrap.d.ts +1 -0
- package/lib/typescript/handlers/gestures/GestureDetector/Wrap.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/attachHandlers.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/index.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/types.d.ts +1 -0
- package/lib/typescript/handlers/gestures/GestureDetector/types.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/updateHandlers.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/useMountReactions.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/utils.d.ts +5 -4
- package/lib/typescript/handlers/gestures/GestureDetector/utils.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/gesture.d.ts +4 -0
- package/lib/typescript/handlers/gestures/gesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/gestureComposition.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/reanimatedWrapper.d.ts +1 -0
- package/lib/typescript/handlers/gestures/reanimatedWrapper.d.ts.map +1 -1
- package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/web/tools/GestureHandlerWebDelegate.d.ts.map +1 -1
- package/lib/typescript/web/tools/KeyboardEventManager.d.ts +2 -1
- package/lib/typescript/web/tools/KeyboardEventManager.d.ts.map +1 -1
- package/lib/typescript/web/tools/WheelEventManager.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/handlers/createHandler.tsx +4 -1
- package/src/handlers/gestures/GestureDetector/Wrap.tsx +17 -1
- package/src/handlers/gestures/GestureDetector/attachHandlers.ts +11 -2
- package/src/handlers/gestures/GestureDetector/index.tsx +4 -0
- package/src/handlers/gestures/GestureDetector/types.ts +3 -0
- package/src/handlers/gestures/GestureDetector/updateHandlers.ts +8 -0
- package/src/handlers/gestures/GestureDetector/useMountReactions.ts +29 -4
- package/src/handlers/gestures/GestureDetector/utils.ts +42 -10
- package/src/handlers/gestures/gesture.ts +11 -0
- package/src/handlers/gestures/gestureComposition.ts +15 -2
- package/src/handlers/gestures/reanimatedWrapper.ts +23 -0
- package/src/specs/RNGestureHandlerRootViewNativeComponent.ts +11 -2
- package/src/web/tools/GestureHandlerWebDelegate.ts +6 -1
- package/src/web/tools/KeyboardEventManager.ts +20 -18
- package/src/web/tools/WheelEventManager.ts +14 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["EventTypes","EventManager","PointerType","KeyboardEventManager","activationKeys","cancelationKeys","
|
|
1
|
+
{"version":3,"names":["EventTypes","EventManager","PointerType","KeyboardEventManager","activationKeys","Set","cancelationKeys","keyPointer","registeredStaticListeners","instances","keyUpStaticCallback","event","has","key","forEach","item","onKeyUp","keyDownCallback","dispatchEvent","CANCEL","repeat","DOWN","UP","eventType","target","HTMLElement","adaptedEvent","mapEvent","onPointerUp","onPointerDown","onPointerCancel","registerListeners","view","addEventListener","add","document","capture","unregisterListeners","removeEventListener","delete","size","resetManager","viewRect","getBoundingClientRect","viewportPosition","x","width","y","height","relativePosition","offsetX","offsetY","pointerId","pointerType","KEY","time","timeStamp"],"sourceRoot":"../../../../src","sources":["web/tools/KeyboardEventManager.ts"],"mappings":";;AAA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EventManager from './EventManager';
|
|
4
4
|
import { EventTypes } from '../interfaces';
|
|
5
5
|
import { PointerType } from '../../PointerType';
|
|
6
|
+
import { calculateViewScale } from '../utils';
|
|
6
7
|
export default class WheelEventManager extends EventManager {
|
|
7
8
|
wheelDelta = {
|
|
8
9
|
x: 0,
|
|
@@ -22,18 +23,27 @@ export default class WheelEventManager extends EventManager {
|
|
|
22
23
|
};
|
|
23
24
|
registerListeners() {
|
|
24
25
|
this.view.addEventListener('pointermove', this.resetDelta);
|
|
25
|
-
this.view.addEventListener('wheel', this.wheelCallback
|
|
26
|
+
this.view.addEventListener('wheel', this.wheelCallback, {
|
|
27
|
+
passive: true
|
|
28
|
+
});
|
|
26
29
|
}
|
|
27
30
|
unregisterListeners() {
|
|
28
31
|
this.view.removeEventListener('pointermove', this.resetDelta);
|
|
29
32
|
this.view.removeEventListener('wheel', this.wheelCallback);
|
|
30
33
|
}
|
|
31
34
|
mapEvent(event) {
|
|
35
|
+
const rect = this.view.getBoundingClientRect();
|
|
36
|
+
const {
|
|
37
|
+
scaleX,
|
|
38
|
+
scaleY
|
|
39
|
+
} = calculateViewScale(this.view);
|
|
40
|
+
const x = event.clientX + this.wheelDelta.x;
|
|
41
|
+
const y = event.clientY + this.wheelDelta.y;
|
|
32
42
|
return {
|
|
33
|
-
x
|
|
34
|
-
y
|
|
35
|
-
offsetX:
|
|
36
|
-
offsetY:
|
|
43
|
+
x,
|
|
44
|
+
y,
|
|
45
|
+
offsetX: (x - rect.left) / scaleX,
|
|
46
|
+
offsetY: (y - rect.top) / scaleY,
|
|
37
47
|
pointerId: -1,
|
|
38
48
|
eventType: EventTypes.MOVE,
|
|
39
49
|
pointerType: PointerType.OTHER,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["EventManager","EventTypes","PointerType","WheelEventManager","wheelDelta","x","y","resetDelta","_event","wheelCallback","event","deltaX","deltaY","adaptedEvent","mapEvent","onWheel","registerListeners","view","addEventListener","unregisterListeners","removeEventListener","clientX","clientY","offsetX","offsetY","pointerId","eventType","MOVE","pointerType","OTHER","time","timeStamp","wheelDeltaY","resetManager"],"sourceRoot":"../../../../src","sources":["web/tools/WheelEventManager.ts"],"mappings":";;AAAA,OAAOA,YAAY,MAAM,gBAAgB;AACzC,SAAuBC,UAAU,QAAQ,eAAe;AACxD,SAASC,WAAW,QAAQ,mBAAmB;
|
|
1
|
+
{"version":3,"names":["EventManager","EventTypes","PointerType","calculateViewScale","WheelEventManager","wheelDelta","x","y","resetDelta","_event","wheelCallback","event","deltaX","deltaY","adaptedEvent","mapEvent","onWheel","registerListeners","view","addEventListener","passive","unregisterListeners","removeEventListener","rect","getBoundingClientRect","scaleX","scaleY","clientX","clientY","offsetX","left","offsetY","top","pointerId","eventType","MOVE","pointerType","OTHER","time","timeStamp","wheelDeltaY","resetManager"],"sourceRoot":"../../../../src","sources":["web/tools/WheelEventManager.ts"],"mappings":";;AAAA,OAAOA,YAAY,MAAM,gBAAgB;AACzC,SAAuBC,UAAU,QAAQ,eAAe;AACxD,SAASC,WAAW,QAAQ,mBAAmB;AAC/C,SAASC,kBAAkB,QAAQ,UAAU;AAE7C,eAAe,MAAMC,iBAAiB,SAASJ,YAAY,CAAc;EAC/DK,UAAU,GAAG;IAAEC,CAAC,EAAE,CAAC;IAAEC,CAAC,EAAE;EAAE,CAAC;EAE3BC,UAAU,GAAIC,MAAoB,IAAK;IAC7C,IAAI,CAACJ,UAAU,GAAG;MAAEC,CAAC,EAAE,CAAC;MAAEC,CAAC,EAAE;IAAE,CAAC;EAClC,CAAC;EAEOG,aAAa,GAAIC,KAAiB,IAAK;IAC7C,IAAI,CAACN,UAAU,CAACC,CAAC,IAAIK,KAAK,CAACC,MAAM;IACjC,IAAI,CAACP,UAAU,CAACE,CAAC,IAAII,KAAK,CAACE,MAAM;IAEjC,MAAMC,YAAY,GAAG,IAAI,CAACC,QAAQ,CAACJ,KAAK,CAAC;IACzC,IAAI,CAACK,OAAO,CAACF,YAAY,CAAC;EAC5B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C1B,KAAK,CAACA,YAAY,CAAC,CAAC;IACpB,IAAI,CAACpC,UAAU,GAAG;MAAEC,CAAC,EAAE,CAAC;MAAEC,CAAC,EAAE;IAAE,CAAC;EAClC;AACF","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createHandler.d.ts","sourceRoot":"","sources":["../../../src/handlers/createHandler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,OAAO,EACL,uBAAuB,EAGxB,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"createHandler.d.ts","sourceRoot":"","sources":["../../../src/handlers/createHandler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,OAAO,EACL,uBAAuB,EAGxB,MAAM,wBAAwB,CAAC;AA4HhC,KAAK,iBAAiB,CAAC,aAAa,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAClE,QAAQ,CAAC;IACP,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,aAAa,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;IAC/D,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1C,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,aAAa,CAAC;IACzD,iBAAiB,CAAC,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;CACxC,CAAC,CAAC;AAmBL,MAAM,CAAC,OAAO,UAAU,aAAa,CACnC,CAAC,SAAS,uBAAuB,CAAC,CAAC,CAAC,EACpC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,EACA,IAAI,EACJ,YAAiB,EACjB,MAAW,EACX,cAAc,EACd,iBAAsB,GACvB,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CA0Y1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wrap.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/gestures/GestureDetector/Wrap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Wrap.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/gestures/GestureDetector/Wrap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,qBAAa,IAAK,SAAQ,KAAK,CAAC,SAAS,CAAC;IACxC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;IACA,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,CAAC,YAAY,CAAiB;IACrC,OAAO,CAAC,QAAQ,CAAsB;IACtC,OAAO,CAAC,gBAAgB,CAAsB;IAC9C,OAAO,CAAC,eAAe,CAAuC;IAGvD,eAAe;IAUf,gBAAgB;IAMvB,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,cAAc,CAWpB;IAEO,kBAAkB;IAYlB,MAAM;;wBAzBqB,OAAO;;CAqD5C;AAED,eAAO,MAAM,YAAY;4BAnGC,OAAO;eAEpB,KAAK,CAAC,SAAS;OAkGgC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachHandlers.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/gestures/GestureDetector/attachHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAoB,MAAM,YAAY,CAAC;AAI3D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAKxD,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"attachHandlers.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/gestures/GestureDetector/attachHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAoB,MAAM,YAAY,CAAC;AAI3D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAKxD,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAShE,UAAU,oBAAoB;IAC5B,eAAe,EAAE,oBAAoB,CAAC;IACtC,aAAa,EAAE,eAAe,GAAG,WAAW,CAAC;IAC7C,gBAAgB,EAAE,WAAW,EAAE,CAAC;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB,EAAE,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;CACvD;AAED,wBAAgB,cAAc,CAAC,EAC7B,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,OAAO,EACP,mBAAmB,GACpB,EAAE,oBAAoB,QAuFtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/gestures/GestureDetector/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAGtE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAwCxD,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;;OAKG;IACH,OAAO,EAAE,eAAe,GAAG,WAAW,CAAC;IACvC;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACpC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACxC;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CACvC;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/gestures/GestureDetector/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAGtE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAwCxD,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;;OAKG;IACH,OAAO,EAAE,eAAe,GAAG,WAAW,CAAC;IACvC;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACpC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACxC;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CACvC;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,oBAAoB,sBA0G1D,CAAC"}
|
|
@@ -7,6 +7,7 @@ export interface AttachedGestureState {
|
|
|
7
7
|
animatedHandlers: SharedValue<HandlerCallbacks<Record<string, unknown>>[] | null> | null;
|
|
8
8
|
shouldUseReanimated: boolean;
|
|
9
9
|
isMounted: boolean;
|
|
10
|
+
hasExternalRelations: boolean;
|
|
10
11
|
}
|
|
11
12
|
export interface GestureDetectorState {
|
|
12
13
|
firstRender: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/gestures/GestureDetector/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAErE,MAAM,WAAW,oBAAoB;IAEnC,gBAAgB,EAAE,WAAW,EAAE,CAAC;IAEhC,oBAAoB,EAAE,OAAO,CAAC;IAE9B,gBAAgB,EAAE,WAAW,CAC3B,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,GAAG,IAAI,CACnD,GAAG,IAAI,CAAC;IAET,mBAAmB,EAAE,OAAO,CAAC;IAE7B,SAAS,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/gestures/GestureDetector/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAErE,MAAM,WAAW,oBAAoB;IAEnC,gBAAgB,EAAE,WAAW,EAAE,CAAC;IAEhC,oBAAoB,EAAE,OAAO,CAAC;IAE9B,gBAAgB,EAAE,WAAW,CAC3B,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,GAAG,IAAI,CACnD,GAAG,IAAI,CAAC;IAET,mBAAmB,EAAE,OAAO,CAAC;IAE7B,SAAS,EAAE,OAAO,CAAC;IAGnB,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IAChC,eAAe,EAAE,MAAM,CAAC;IACxB,2BAA2B,EAAE,OAAO,CAAC;CACtC;AAED,MAAM,WAAW,eAAe;IAC9B,qBAAqB,EAAE,CAAC,KAAK,EAAE,uBAAuB,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACzE,2BAA2B,CAAC,EACxB,CAAC,CAAC,KAAK,EAAE,uBAAuB,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC,GACnD,SAAS,CAAC;CACf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateHandlers.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/gestures/GestureDetector/updateHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAoB,MAAM,YAAY,CAAC;AAI3D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"updateHandlers.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/gestures/GestureDetector/updateHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAoB,MAAM,YAAY,CAAC;AAI3D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAQ/C,wBAAgB,cAAc,CAC5B,eAAe,EAAE,oBAAoB,EACrC,aAAa,EAAE,eAAe,GAAG,WAAW,EAC5C,WAAW,EAAE,WAAW,EAAE,QAkF3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMountReactions.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/gestures/GestureDetector/useMountReactions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"useMountReactions.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/gestures/GestureDetector/useMountReactions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAmC/C,wBAAgB,iBAAiB,CAC/B,cAAc,EAAE,MAAM,IAAI,EAC1B,KAAK,EAAE,oBAAoB,QA0C5B"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GestureType } from '../gesture';
|
|
2
2
|
import { WebEventHandler } from './types';
|
|
3
3
|
export declare const ALLOWED_PROPS: string[];
|
|
4
|
+
export declare function hasExternalRelations(gestures: GestureType[]): boolean;
|
|
4
5
|
export declare function extractGestureRelations(gesture: GestureType): {
|
|
5
|
-
waitFor:
|
|
6
|
-
simultaneousHandlers:
|
|
7
|
-
blocksHandlers:
|
|
6
|
+
waitFor: number[];
|
|
7
|
+
simultaneousHandlers: number[];
|
|
8
|
+
blocksHandlers: number[];
|
|
8
9
|
};
|
|
9
10
|
export declare function checkGestureCallbacksForWorklets(gesture: GestureType): void;
|
|
10
11
|
export declare function useForceRender(): () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/gestures/GestureDetector/utils.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/handlers/gestures/GestureDetector/utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAA2B,WAAW,EAAE,MAAM,YAAY,CAAC;AAmBlE,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,aAAa,UAUzB,CAAC;AAoCF,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,WAAW,EAAE,WA8B3D;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,WAAW;;;;EAY3D;AAED,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,WAAW,QAsCpE;AAED,wBAAgB,cAAc,eAO7B;AAED,wBAAgB,mBAAmB,+CAWlC"}
|
|
@@ -67,6 +67,10 @@ export declare abstract class BaseGesture<EventPayloadT extends Record<string, u
|
|
|
67
67
|
handlerTag: number;
|
|
68
68
|
handlerName: string;
|
|
69
69
|
config: BaseGestureConfig;
|
|
70
|
+
relationsSnapshot?: {
|
|
71
|
+
simultaneousWith: GestureRef[] | undefined;
|
|
72
|
+
requireToFail: GestureRef[] | undefined;
|
|
73
|
+
};
|
|
70
74
|
handlers: HandlerCallbacks<EventPayloadT>;
|
|
71
75
|
constructor();
|
|
72
76
|
private addDependency;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gesture.d.ts","sourceRoot":"","sources":["../../../../src/handlers/gestures/gesture.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACZ,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EACV,+BAA+B,EAC/B,oCAAoC,EACpC,mCAAmC,EACnC,6BAA6B,EAC7B,+BAA+B,EAC/B,kCAAkC,EAClC,6BAA6B,EAC7B,+BAA+B,EAC/B,+BAA+B,EAChC,MAAM,+BAA+B,CAAC;AAGvC,MAAM,MAAM,WAAW,GACnB,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACpC,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,GAClC,WAAW,CAAC,6BAA6B,CAAC,GAC1C,WAAW,CAAC,6BAA6B,CAAC,GAC1C,WAAW,CAAC,mCAAmC,CAAC,GAChD,WAAW,CAAC,kCAAkC,CAAC,GAC/C,WAAW,CAAC,+BAA+B,CAAC,GAC5C,WAAW,CAAC,+BAA+B,CAAC,GAC5C,WAAW,CAAC,oCAAoC,CAAC,GACjD,WAAW,CAAC,+BAA+B,CAAC,GAC5C,WAAW,CAAC,+BAA+B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EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"gestureComposition.d.ts","sourceRoot":"","sources":["../../../../src/handlers/gestures/gestureComposition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,OAAO,EAAc,WAAW,EAAE,MAAM,WAAW,CAAC;AAa1E,qBAAa,eAAgB,SAAQ,OAAO;IAC1C,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE,CAAM;IACnC,SAAS,CAAC,oBAAoB,EAAE,WAAW,EAAE,CAAM;IACnD,SAAS,CAAC,qBAAqB,EAAE,WAAW,EAAE,CAAM;gBAExC,GAAG,QAAQ,EAAE,OAAO,EAAE;IAKlC,SAAS,CAAC,oBAAoB,CAC5B,OAAO,EAAE,OAAO,EAChB,oBAAoB,EAAE,WAAW,EAAE,EACnC,qBAAqB,EAAE,WAAW,EAAE;IAqCtC,OAAO;IAUP,UAAU;IAMV,cAAc,IAAI,WAAW,EAAE;CAGhC;AAED,qBAAa,mBAAoB,SAAQ,eAAe;IACtD,OAAO;CAuBR;AAED,qBAAa,gBAAiB,SAAQ,eAAe;IACnD,OAAO;CAoBR;AAED,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,CAAC;AACvE,MAAM,MAAM,eAAe,GAAG,mBAAmB,CAAC;AAClD,MAAM,MAAM,uBAAuB,GAAG,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAC/E,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -11,5 +11,6 @@ declare let Reanimated: {
|
|
|
11
11
|
useSharedValue: <T>(value: T) => SharedValue<T>;
|
|
12
12
|
setGestureState: (handlerTag: number, newState: number) => void;
|
|
13
13
|
} | undefined;
|
|
14
|
+
export declare function reanimatedRefreshesAnimatableRef(): boolean;
|
|
14
15
|
export { Reanimated };
|
|
15
16
|
//# sourceMappingURL=reanimatedWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reanimatedWrapper.d.ts","sourceRoot":"","sources":["../../../../src/handlers/gestures/reanimatedWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACxB,MAAM,yBAAyB,CAAC;AAGjC,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,KAAK,EAAE,CAAC,CAAC;CACV;AAED,QAAA,IAAI,UAAU,EACV;IACE,OAAO,EAAE;QAEP,uBAAuB,CAAC,CAAC,SAAS,MAAM,EACtC,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC,EAC5B,OAAO,CAAC,EAAE,OAAO,GAChB,cAAc,CAAC,CAAC,CAAC,CAAC;KACtB,CAAC;IACF,QAAQ,EAAE,CACR,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,GAAG,uBAAuB,KAAK,IAAI,EACvE,MAAM,EAAE,MAAM,EAAE,EAChB,OAAO,EAAE,OAAO,KACb,OAAO,CAAC;IACb,cAAc,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC;IAChD,eAAe,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACjE,GACD,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"reanimatedWrapper.d.ts","sourceRoot":"","sources":["../../../../src/handlers/gestures/reanimatedWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACxB,MAAM,yBAAyB,CAAC;AAGjC,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,KAAK,EAAE,CAAC,CAAC;CACV;AAED,QAAA,IAAI,UAAU,EACV;IACE,OAAO,EAAE;QAEP,uBAAuB,CAAC,CAAC,SAAS,MAAM,EACtC,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC,EAC5B,OAAO,CAAC,EAAE,OAAO,GAChB,cAAc,CAAC,CAAC,CAAC,CAAC;KACtB,CAAC;IACF,QAAQ,EAAE,CACR,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,GAAG,uBAAuB,KAAK,IAAI,EACvE,MAAM,EAAE,MAAM,EAAE,EAChB,OAAO,EAAE,OAAO,KACb,OAAO,CAAC;IACb,cAAc,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC;IAChD,eAAe,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACjE,GACD,SAAS,CAAC;AA+Cd,wBAAgB,gCAAgC,YAE/C;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RNGestureHandlerRootViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/specs/RNGestureHandlerRootViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"RNGestureHandlerRootViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/specs/RNGestureHandlerRootViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAgB,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE3E,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;wBAaI,aAAa,CAAC,mBAAmB,CAAC;AAFvC,wBAEwC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GestureHandlerWebDelegate.d.ts","sourceRoot":"","sources":["../../../../src/web/tools/GestureHandlerWebDelegate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EACL,sBAAsB,E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,IAAI;IAIP,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAQpC,IAAW,IAAI,IAGQ,WAAW,CADjC;IACD,IAAW,IAAI,CAAC,KAAK,EAAE,WAAW,EAEjC;CACF"}
|
|
@@ -3,7 +3,7 @@ import EventManager from './EventManager';
|
|
|
3
3
|
export default class KeyboardEventManager extends EventManager<HTMLElement> {
|
|
4
4
|
private static activationKeys;
|
|
5
5
|
private static cancelationKeys;
|
|
6
|
-
private
|
|
6
|
+
private keyPointer;
|
|
7
7
|
private static registeredStaticListeners;
|
|
8
8
|
private static instances;
|
|
9
9
|
private static keyUpStaticCallback;
|
|
@@ -12,6 +12,7 @@ export default class KeyboardEventManager extends EventManager<HTMLElement> {
|
|
|
12
12
|
private dispatchEvent;
|
|
13
13
|
registerListeners(): void;
|
|
14
14
|
unregisterListeners(): void;
|
|
15
|
+
resetManager(): void;
|
|
15
16
|
protected mapEvent(event: KeyboardEvent, eventType: EventTypes): AdaptedEvent;
|
|
16
17
|
}
|
|
17
18
|
//# sourceMappingURL=KeyboardEventManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardEventManager.d.ts","sourceRoot":"","sources":["../../../../src/web/tools/KeyboardEventManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAG1C,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,YAAY,CAAC,WAAW,CAAC;IACzE,OAAO,CAAC,MAAM,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"KeyboardEventManager.d.ts","sourceRoot":"","sources":["../../../../src/web/tools/KeyboardEventManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAG1C,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,YAAY,CAAC,WAAW,CAAC;IACzE,OAAO,CAAC,MAAM,CAAC,cAAc,CAA2B;IACxD,OAAO,CAAC,MAAM,CAAC,eAAe,CAAoB;IAClD,OAAO,CAAC,UAAU,CAAuB;IAEzC,OAAO,CAAC,MAAM,CAAC,yBAAyB,CAAS;IACjD,OAAO,CAAC,MAAM,CAAC,SAAS,CAAwC;IAEhE,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAWhC;IAEF,OAAO,CAAC,eAAe,CAgBrB;IAEF,OAAO,CAAC,OAAO,CAOb;IAEF,OAAO,CAAC,aAAa;IAoBd,iBAAiB,IAAI,IAAI;IAezB,mBAAmB,IAAI,IAAI;IAelB,YAAY,IAAI,IAAI;IAKpC,SAAS,CAAC,QAAQ,CAChB,KAAK,EAAE,aAAa,EACpB,SAAS,EAAE,UAAU,GACpB,YAAY;CAwBhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WheelEventManager.d.ts","sourceRoot":"","sources":["../../../../src/web/tools/WheelEventManager.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAc,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"WheelEventManager.d.ts","sourceRoot":"","sources":["../../../../src/web/tools/WheelEventManager.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAc,MAAM,eAAe,CAAC;AAIzD,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,YAAY,CAAC,WAAW,CAAC;IACtE,OAAO,CAAC,UAAU,CAAkB;IAEpC,OAAO,CAAC,UAAU,CAEhB;IAEF,OAAO,CAAC,aAAa,CAMnB;IAEK,iBAAiB,IAAI,IAAI;IAOzB,mBAAmB,IAAI,IAAI;IAKlC,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,YAAY;IAqB5C,YAAY,IAAI,IAAI;CAI5B"}
|
package/package.json
CHANGED
|
@@ -78,7 +78,10 @@ UIManagerAny.genericDirectEventTypes = {
|
|
|
78
78
|
...customGHEventsConfig,
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
const UIManagerConstants =
|
|
81
|
+
const UIManagerConstants =
|
|
82
|
+
Platform.OS === 'windows'
|
|
83
|
+
? null
|
|
84
|
+
: UIManagerAny.getViewManagerConfig?.('getConstants');
|
|
82
85
|
|
|
83
86
|
if (UIManagerConstants) {
|
|
84
87
|
UIManagerConstants.genericDirectEventTypes = {
|
|
@@ -4,8 +4,12 @@ import {
|
|
|
4
4
|
assignRef,
|
|
5
5
|
isHostInstance,
|
|
6
6
|
preferHostInstance,
|
|
7
|
+
resolveHostInstance,
|
|
7
8
|
} from '../../../hostInstance';
|
|
8
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
Reanimated,
|
|
11
|
+
reanimatedRefreshesAnimatableRef,
|
|
12
|
+
} from '../reanimatedWrapper';
|
|
9
13
|
import { tagMessage } from '../../../utils';
|
|
10
14
|
|
|
11
15
|
export class Wrap extends React.Component<{
|
|
@@ -24,6 +28,18 @@ export class Wrap extends React.Component<{
|
|
|
24
28
|
return this.hostInstance;
|
|
25
29
|
}
|
|
26
30
|
|
|
31
|
+
// Used by Reanimated's `createAnimatedComponent` (`AnimatedWrap`). Without it,
|
|
32
|
+
// Reanimated calls `findHostInstance_DEPRECATED` on this class instance, which
|
|
33
|
+
// warns under StrictMode. Reanimated caches the result, so the child's host
|
|
34
|
+
// instance is only safe to hand out when it re-resolves the ref on update;
|
|
35
|
+
// otherwise return the instance itself, which keeps the deprecated lookup.
|
|
36
|
+
// eslint-disable-next-line @eslint-react/no-unused-class-component-members
|
|
37
|
+
public getAnimatableRef() {
|
|
38
|
+
return reanimatedRefreshesAnimatableRef()
|
|
39
|
+
? resolveHostInstance(this)
|
|
40
|
+
: this;
|
|
41
|
+
}
|
|
42
|
+
|
|
27
43
|
private detachChildRef() {
|
|
28
44
|
if (this.childRefCleanup !== undefined) {
|
|
29
45
|
this.childRefCleanup();
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
extractGestureRelations,
|
|
14
14
|
checkGestureCallbacksForWorklets,
|
|
15
15
|
ALLOWED_PROPS,
|
|
16
|
+
hasExternalRelations,
|
|
16
17
|
} from './utils';
|
|
17
18
|
import { MountRegistry } from '../../../mountRegistry';
|
|
18
19
|
|
|
@@ -53,6 +54,9 @@ export function attachHandlers({
|
|
|
53
54
|
registerHandler(handler.handlerTag, handler, handler.config.testId);
|
|
54
55
|
}
|
|
55
56
|
|
|
57
|
+
// React to every mount until the microtask below classifies the new gesture set
|
|
58
|
+
preparedGesture.hasExternalRelations = true;
|
|
59
|
+
|
|
56
60
|
// Use queueMicrotask to extract handlerTags, because all refs should be initialized
|
|
57
61
|
// when it's ran
|
|
58
62
|
ghQueueMicrotask(() => {
|
|
@@ -70,9 +74,16 @@ export function attachHandlers({
|
|
|
70
74
|
);
|
|
71
75
|
}
|
|
72
76
|
|
|
77
|
+
preparedGesture.hasExternalRelations =
|
|
78
|
+
hasExternalRelations(gesturesToAttach);
|
|
79
|
+
|
|
73
80
|
scheduleFlushOperations();
|
|
74
81
|
});
|
|
75
82
|
|
|
83
|
+
// Set before the mount events below fire, so this detector's own mount
|
|
84
|
+
// listener can tell its gestures apart from external ones
|
|
85
|
+
preparedGesture.attachedGestures = gesturesToAttach;
|
|
86
|
+
|
|
76
87
|
for (const gesture of gesturesToAttach) {
|
|
77
88
|
const actionType = gesture.shouldUseReanimated
|
|
78
89
|
? ActionType.REANIMATED_WORKLET
|
|
@@ -98,8 +109,6 @@ export function attachHandlers({
|
|
|
98
109
|
MountRegistry.gestureWillMount(gesture);
|
|
99
110
|
}
|
|
100
111
|
|
|
101
|
-
preparedGesture.attachedGestures = gesturesToAttach;
|
|
102
|
-
|
|
103
112
|
if (preparedGesture.animatedHandlers) {
|
|
104
113
|
const isAnimatedGesture = (g: GestureType) => g.shouldUseReanimated;
|
|
105
114
|
|
|
@@ -127,6 +127,10 @@ export const GestureDetector = (props: GestureDetectorProps) => {
|
|
|
127
127
|
animatedHandlers: null,
|
|
128
128
|
shouldUseReanimated: shouldUseReanimated,
|
|
129
129
|
isMounted: false,
|
|
130
|
+
// The real value is computed in the attach microtask, which runs after
|
|
131
|
+
// this commit's effects. Until then react to every mount, so a relation
|
|
132
|
+
// to a gesture mounting in the same commit is never skipped.
|
|
133
|
+
hasExternalRelations: true,
|
|
130
134
|
}).current;
|
|
131
135
|
|
|
132
136
|
const updateAttachedGestures = useDetectorUpdater(
|
|
@@ -15,6 +15,9 @@ export interface AttachedGestureState {
|
|
|
15
15
|
shouldUseReanimated: boolean;
|
|
16
16
|
// Whether the GestureDetector is mounted
|
|
17
17
|
isMounted: boolean;
|
|
18
|
+
// Whether any attached gesture has a relation to a gesture outside this
|
|
19
|
+
// detector (a ref or a gesture object), which may resolve on a later mount
|
|
20
|
+
hasExternalRelations: boolean;
|
|
18
21
|
}
|
|
19
22
|
|
|
20
23
|
export interface GestureDetectorState {
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
extractGestureRelations,
|
|
10
10
|
checkGestureCallbacksForWorklets,
|
|
11
11
|
ALLOWED_PROPS,
|
|
12
|
+
hasExternalRelations,
|
|
12
13
|
} from './utils';
|
|
13
14
|
|
|
14
15
|
export function updateHandlers(
|
|
@@ -33,6 +34,9 @@ export function updateHandlers(
|
|
|
33
34
|
// Store attached gestures to avoid crash when gestures changed after queueing micro task
|
|
34
35
|
const attachedGestures = preparedGesture.attachedGestures;
|
|
35
36
|
|
|
37
|
+
// React to every mount until the microtask below classifies the new gesture set
|
|
38
|
+
preparedGesture.hasExternalRelations = true;
|
|
39
|
+
|
|
36
40
|
// Use queueMicrotask to extract handlerTags, because when it's ran, all refs should be updated
|
|
37
41
|
// and handlerTags in BaseGesture references should be updated in the loop above (we need to wait
|
|
38
42
|
// in case of external relations)
|
|
@@ -77,6 +81,10 @@ export function updateHandlers(
|
|
|
77
81
|
registerHandler(handler.handlerTag, handler, handler.config.testId);
|
|
78
82
|
}
|
|
79
83
|
|
|
84
|
+
// Classify the new instances: their configs reference the new siblings,
|
|
85
|
+
// which the old attached objects would mistake for external gestures
|
|
86
|
+
preparedGesture.hasExternalRelations = hasExternalRelations(newGestures);
|
|
87
|
+
|
|
80
88
|
if (preparedGesture.animatedHandlers && shouldUpdateSharedValueIfUsed) {
|
|
81
89
|
const newHandlersValue = attachedGestures
|
|
82
90
|
.filter((g) => g.shouldUseReanimated) // Ignore gestures that shouldn't run on UI
|
|
@@ -1,19 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GestureMountListener } from '../../../mountRegistry';
|
|
2
2
|
import { MountRegistry } from '../../../mountRegistry';
|
|
3
3
|
import { AttachedGestureState } from './types';
|
|
4
4
|
import { useEffect } from 'react';
|
|
5
5
|
import { GestureRef } from '../gesture';
|
|
6
6
|
|
|
7
|
+
type MountedGesture = Parameters<GestureMountListener>[0];
|
|
8
|
+
|
|
7
9
|
function shouldUpdateDetector(
|
|
8
10
|
relation: GestureRef[] | undefined,
|
|
9
|
-
gesture:
|
|
11
|
+
gesture: MountedGesture
|
|
10
12
|
) {
|
|
11
13
|
if (relation === undefined) {
|
|
12
14
|
return false;
|
|
13
15
|
}
|
|
14
16
|
|
|
15
|
-
for (const
|
|
16
|
-
|
|
17
|
+
for (const entry of relation) {
|
|
18
|
+
// A gesture object gets its tag in `initialize`, when its own detector
|
|
19
|
+
// attaches. The mount event carries that very object, so identity is enough.
|
|
20
|
+
if (entry === gesture) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (entry === null || typeof entry !== 'object' || !('current' in entry)) {
|
|
25
|
+
continue;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const current = entry.current as { handlerTag?: number } | null | undefined;
|
|
29
|
+
|
|
30
|
+
if (current?.handlerTag === gesture.handlerTag) {
|
|
17
31
|
return true;
|
|
18
32
|
}
|
|
19
33
|
}
|
|
@@ -33,6 +47,17 @@ export function useMountReactions(
|
|
|
33
47
|
return;
|
|
34
48
|
}
|
|
35
49
|
|
|
50
|
+
// Nothing here can resolve late, skip the scan (most detectors)
|
|
51
|
+
if (!state.hasExternalRelations) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Own gestures are resolved by the attach microtask, and on a reattach
|
|
56
|
+
// they would match the sibling entries added by composition
|
|
57
|
+
if (state.attachedGestures.includes(gesture as never)) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
|
|
36
61
|
// At this point the ref in the gesture config should be updated, so we can check if one of the gestures
|
|
37
62
|
// set in a relation with the gesture got mounted. If so, we need to update the detector to propagate
|
|
38
63
|
// the changes to the native side.
|
|
@@ -64,21 +64,53 @@ function extractValidHandlerTags(interactionGroup: GestureRef[] | undefined) {
|
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
// Relations that may resolve to a different handler after this detector attached:
|
|
68
|
+
// refs (filled when the target mounts) and gesture objects attached by another
|
|
69
|
+
// detector (they get a tag in `initialize`). Siblings added by composition are
|
|
70
|
+
// attached together with the gesture, so they never resolve late.
|
|
71
|
+
export function hasExternalRelations(gestures: GestureType[]) {
|
|
72
|
+
const ownGestures = new Set(gestures);
|
|
73
|
+
|
|
74
|
+
for (const gesture of gestures) {
|
|
75
|
+
const relations = [
|
|
76
|
+
gesture.config.blocksHandlers,
|
|
77
|
+
gesture.config.requireToFail,
|
|
78
|
+
gesture.config.simultaneousWith,
|
|
79
|
+
];
|
|
80
|
+
|
|
81
|
+
for (const relation of relations) {
|
|
82
|
+
if (relation === undefined) {
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
for (const entry of relation) {
|
|
87
|
+
if (typeof entry === 'number') {
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Anything but our own gesture object is external: a ref, or a gesture
|
|
92
|
+
// attached by another detector
|
|
93
|
+
if (!(entry instanceof BaseGesture) || !ownGestures.has(entry)) {
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
102
|
+
|
|
67
103
|
export function extractGestureRelations(gesture: GestureType) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
);
|
|
71
|
-
gesture.config.simultaneousWith = extractValidHandlerTags(
|
|
104
|
+
const requireToFail = extractValidHandlerTags(gesture.config.requireToFail);
|
|
105
|
+
const simultaneousWith = extractValidHandlerTags(
|
|
72
106
|
gesture.config.simultaneousWith
|
|
73
107
|
);
|
|
74
|
-
|
|
75
|
-
gesture.config.blocksHandlers
|
|
76
|
-
);
|
|
108
|
+
const blocksHandlers = extractValidHandlerTags(gesture.config.blocksHandlers);
|
|
77
109
|
|
|
78
110
|
return {
|
|
79
|
-
waitFor:
|
|
80
|
-
simultaneousHandlers:
|
|
81
|
-
blocksHandlers:
|
|
111
|
+
waitFor: requireToFail,
|
|
112
|
+
simultaneousHandlers: simultaneousWith,
|
|
113
|
+
blocksHandlers: blocksHandlers,
|
|
82
114
|
};
|
|
83
115
|
}
|
|
84
116
|
|
|
@@ -131,6 +131,17 @@ export abstract class BaseGesture<
|
|
|
131
131
|
public handlerTag = -1;
|
|
132
132
|
public handlerName = '';
|
|
133
133
|
public config: BaseGestureConfig = {};
|
|
134
|
+
// Snapshot of the relations defined directly on this gesture (e.g. via
|
|
135
|
+
// `simultaneousWithExternalGesture`), captured before any composition extends
|
|
136
|
+
// them. Composition rebuilds the relation config from this snapshot on every
|
|
137
|
+
// `prepare`, so repeated renders don't accumulate references to gestures from
|
|
138
|
+
// previous renders (memory leak, see #3763), while keeping the original
|
|
139
|
+
// references so relations stay re-resolvable after a remount, such as a
|
|
140
|
+
// `react-freeze` unfreeze (see #4238).
|
|
141
|
+
public relationsSnapshot?: {
|
|
142
|
+
simultaneousWith: GestureRef[] | undefined;
|
|
143
|
+
requireToFail: GestureRef[] | undefined;
|
|
144
|
+
};
|
|
134
145
|
public handlers: HandlerCallbacks<EventPayloadT> = {
|
|
135
146
|
gestureId: -1,
|
|
136
147
|
handlerTag: -1,
|
|
@@ -27,16 +27,29 @@ export class ComposedGesture extends Gesture {
|
|
|
27
27
|
requireGesturesToFail: GestureType[]
|
|
28
28
|
) {
|
|
29
29
|
if (gesture instanceof BaseGesture) {
|
|
30
|
+
// Capture the relations defined directly on the gesture before composition
|
|
31
|
+
// extends them, then always rebuild from that snapshot. Otherwise, when the
|
|
32
|
+
// gesture is stable (e.g. wrapped in `useMemo`) but the composition is
|
|
33
|
+
// recreated on every render, the relations would keep accumulating
|
|
34
|
+
// references to gestures from previous renders, leaking memory (see #3763).
|
|
35
|
+
// We keep the original references (instead of collapsing them to handler
|
|
36
|
+
// tags) so relations can still be re-resolved after a remount, such as a
|
|
37
|
+
// `react-freeze` unfreeze (see #4238).
|
|
38
|
+
gesture.relationsSnapshot ??= {
|
|
39
|
+
simultaneousWith: gesture.config.simultaneousWith,
|
|
40
|
+
requireToFail: gesture.config.requireToFail,
|
|
41
|
+
};
|
|
42
|
+
|
|
30
43
|
const newConfig = { ...gesture.config };
|
|
31
44
|
|
|
32
45
|
// No need to extend `blocksHandlers` here, because it's not changed in composition.
|
|
33
46
|
// The same effect is achieved by reversing the order of 2 gestures in `Exclusive`
|
|
34
47
|
newConfig.simultaneousWith = extendRelation(
|
|
35
|
-
|
|
48
|
+
gesture.relationsSnapshot.simultaneousWith,
|
|
36
49
|
simultaneousGestures
|
|
37
50
|
);
|
|
38
51
|
newConfig.requireToFail = extendRelation(
|
|
39
|
-
|
|
52
|
+
gesture.relationsSnapshot.requireToFail,
|
|
40
53
|
requireGesturesToFail
|
|
41
54
|
);
|
|
42
55
|
|