@react-native-oh-tpl/react-native-gesture-handler 2.12.6-2 → 2.12.9-1
Sign up to get free protection for your applications and to get access to all the features.
- package/harmony/gesture_handler/BuildProfile.ets +6 -0
- package/harmony/gesture_handler/build-profile.json5 +13 -2
- package/harmony/gesture_handler/hvigorfile.ts +1 -1
- package/harmony/gesture_handler/index.ets +1 -1
- package/harmony/gesture_handler/oh-package-lock.json5 +18 -0
- package/harmony/gesture_handler/oh-package.json5 +10 -11
- package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.cpp +75 -6
- package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.h +14 -8
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonComponentDescriptor.h +4 -28
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonComponentInstance.h +27 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonJSIBinder.h +32 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.cpp +17 -12
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.h +5 -2
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerPackage.h +72 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewComponentDescriptor.h +4 -28
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewComponentInstance.h +123 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewJSIBinder.h +25 -0
- package/harmony/gesture_handler/src/main/ets/EventDispatcher.ts +16 -1
- package/harmony/gesture_handler/src/main/ets/GestureHandler.ts +2 -2
- package/harmony/gesture_handler/src/main/ets/{GestureHandlerArkUIAdapter.ets → GestureHandlerArkUIAdapter.ts} +2 -1
- package/harmony/gesture_handler/src/main/ets/GestureHandlerPackage.ts +2 -2
- package/harmony/gesture_handler/src/main/ets/OutgoingEvent.ts +5 -5
- package/harmony/gesture_handler/src/main/ets/RNGHLogger.ts +20 -1
- package/harmony/gesture_handler/src/main/ets/{RNGHRootTouchHandler.ets → RNGHRootTouchHandlerArkTS.ts} +5 -3
- package/harmony/gesture_handler/src/main/ets/RNGHRootTouchHandlerCAPI.ts +87 -0
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerButton.ets +4 -3
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerModule.ts +65 -7
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerRootView.ets +7 -11
- package/harmony/gesture_handler/src/main/ets/RNOHScrollLocker.ts +17 -5
- package/harmony/gesture_handler/src/main/ets/View.ts +1 -1
- package/harmony/gesture_handler/src/main/ets/ViewRegistry.ts +1 -1
- package/harmony/gesture_handler/src/main/ets/namespace/RNGestureHandlerButton.ts +140 -0
- package/harmony/gesture_handler/src/main/ets/namespace/RNGestureHandlerModule.ts +25 -0
- package/harmony/gesture_handler/src/main/ets/namespace/RNGestureHandlerRootView.ts +101 -0
- package/harmony/gesture_handler/src/main/ets/namespace/ts.ts +3 -0
- package/harmony/gesture_handler/src/main/ets/types.ts +25 -0
- package/harmony/gesture_handler/src/main/module.json5 +6 -6
- package/harmony/gesture_handler/ts.ts +2 -1
- package/harmony/gesture_handler.har +0 -0
- package/lib/commonjs/RNGestureHandlerModule.js +6 -3
- package/lib/commonjs/RNGestureHandlerModule.js.map +1 -1
- package/lib/commonjs/components/GestureHandlerRootView.js +5 -13
- package/lib/commonjs/components/GestureHandlerRootView.js.map +1 -1
- package/lib/commonjs/handlers/createHandler.js +31 -28
- package/lib/commonjs/handlers/createHandler.js.map +1 -1
- package/lib/commonjs/index.js +42 -19
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/specs/NativeRNGestureHandlerModule.js +10 -0
- package/lib/commonjs/specs/NativeRNGestureHandlerModule.js.map +1 -0
- package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js +11 -0
- package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -0
- package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js +11 -0
- package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -0
- package/lib/module/RNGestureHandlerModule.js +3 -2
- package/lib/module/RNGestureHandlerModule.js.map +1 -1
- package/lib/module/components/GestureHandlerRootView.js +3 -11
- package/lib/module/components/GestureHandlerRootView.js.map +1 -1
- package/lib/module/handlers/createHandler.js +20 -19
- package/lib/module/handlers/createHandler.js.map +1 -1
- package/lib/module/index.js +6 -14
- package/lib/module/index.js.map +1 -1
- package/lib/module/specs/NativeRNGestureHandlerModule.js +3 -0
- package/lib/module/specs/NativeRNGestureHandlerModule.js.map +1 -0
- package/lib/module/specs/RNGestureHandlerButtonNativeComponent.js +3 -0
- package/lib/module/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -0
- package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.js +3 -0
- package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -0
- package/lib/typescript/RNGestureHandlerModule.d.ts +2 -6
- package/lib/typescript/RNGestureHandlerModule.d.ts.map +1 -1
- package/lib/typescript/components/GestureHandlerRootView.d.ts +6 -6
- package/lib/typescript/components/GestureHandlerRootView.d.ts.map +1 -1
- package/lib/typescript/handlers/createHandler.d.ts +11 -11
- package/lib/typescript/handlers/createHandler.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +9 -8
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts +15 -0
- package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts.map +1 -0
- package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts +15 -0
- package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts.map +1 -0
- package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts +7 -0
- package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts.map +1 -0
- package/package.json +9 -13
- package/src/RNGestureHandlerModule.ts +3 -4
- package/src/components/GestureHandlerRootView.tsx +4 -15
- package/src/handlers/createHandler.tsx +4 -5
- package/src/index.ts +13 -13
- package/src/specs/NativeRNGestureHandlerModule.ts +26 -0
- package/src/specs/RNGestureHandlerButtonNativeComponent.ts +18 -0
- package/src/specs/RNGestureHandlerRootViewNativeComponent.ts +6 -0
- package/README.md +0 -1
- package/harmony/gesture_handler/LICENSE +0 -21
- package/harmony/gesture_handler/OAT.xml +0 -44
- package/harmony/gesture_handler/README.OpenSource +0 -11
- package/harmony/gesture_handler/README.md +0 -1
- package/lib/commonjs/components/GestureButtons.js +0 -186
- package/lib/commonjs/components/GestureButtons.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerButton.js +0 -9
- package/lib/commonjs/components/GestureHandlerButton.js.map +0 -1
- package/lib/commonjs/components/RNGestureHandlerButton.js +0 -23
- package/lib/commonjs/components/RNGestureHandlerButton.js.map +0 -1
- package/lib/commonjs/components/touchables/GenericTouchable.js +0 -247
- package/lib/commonjs/components/touchables/GenericTouchable.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableOpacity.js +0 -58
- package/lib/commonjs/components/touchables/TouchableOpacity.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableWithoutFeedback.js +0 -18
- package/lib/commonjs/components/touchables/TouchableWithoutFeedback.js.map +0 -1
- package/lib/commonjs/components/touchables/index.js +0 -21
- package/lib/commonjs/components/touchables/index.js.map +0 -1
- package/lib/commonjs/handlers/NativeViewGestureHandler.js +0 -19
- package/lib/commonjs/handlers/NativeViewGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/PanGestureHandler.js +0 -103
- package/lib/commonjs/handlers/PanGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/TapGestureHandler.js +0 -22
- package/lib/commonjs/handlers/TapGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/createNativeWrapper.js +0 -64
- package/lib/commonjs/handlers/createNativeWrapper.js.map +0 -1
- package/lib/commonjs/handlers/gestureHandlerCommon.js +0 -22
- package/lib/commonjs/handlers/gestureHandlerCommon.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector.js +0 -554
- package/lib/commonjs/handlers/gestures/GestureDetector.js.map +0 -1
- package/lib/commonjs/init.js +0 -24
- package/lib/commonjs/init.js.map +0 -1
- package/lib/module/components/GestureButtons.js +0 -168
- package/lib/module/components/GestureButtons.js.map +0 -1
- package/lib/module/components/GestureHandlerButton.js +0 -3
- package/lib/module/components/GestureHandlerButton.js.map +0 -1
- package/lib/module/components/RNGestureHandlerButton.js +0 -17
- package/lib/module/components/RNGestureHandlerButton.js.map +0 -1
- package/lib/module/components/touchables/GenericTouchable.js +0 -238
- package/lib/module/components/touchables/GenericTouchable.js.map +0 -1
- package/lib/module/components/touchables/TouchableOpacity.js +0 -49
- package/lib/module/components/touchables/TouchableOpacity.js.map +0 -1
- package/lib/module/components/touchables/TouchableWithoutFeedback.js +0 -9
- package/lib/module/components/touchables/TouchableWithoutFeedback.js.map +0 -1
- package/lib/module/components/touchables/index.js +0 -8
- package/lib/module/components/touchables/index.js.map +0 -1
- package/lib/module/handlers/NativeViewGestureHandler.js +0 -12
- package/lib/module/handlers/NativeViewGestureHandler.js.map +0 -1
- package/lib/module/handlers/PanGestureHandler.js +0 -92
- package/lib/module/handlers/PanGestureHandler.js.map +0 -1
- package/lib/module/handlers/TapGestureHandler.js +0 -14
- package/lib/module/handlers/TapGestureHandler.js.map +0 -1
- package/lib/module/handlers/createNativeWrapper.js +0 -57
- package/lib/module/handlers/createNativeWrapper.js.map +0 -1
- package/lib/module/handlers/gestureHandlerCommon.js +0 -15
- package/lib/module/handlers/gestureHandlerCommon.js.map +0 -1
- package/lib/module/handlers/gestures/GestureDetector.js +0 -543
- package/lib/module/handlers/gestures/GestureDetector.js.map +0 -1
- package/lib/module/init.js +0 -17
- package/lib/module/init.js.map +0 -1
- package/lib/typescript/components/GestureButtons.d.ts +0 -122
- package/lib/typescript/components/GestureButtons.d.ts.map +0 -1
- package/lib/typescript/components/GestureHandlerButton.d.ts +0 -5
- package/lib/typescript/components/GestureHandlerButton.d.ts.map +0 -1
- package/lib/typescript/components/RNGestureHandlerButton.d.ts +0 -2
- package/lib/typescript/components/RNGestureHandlerButton.d.ts.map +0 -1
- package/lib/typescript/components/touchables/GenericTouchable.d.ts +0 -68
- package/lib/typescript/components/touchables/GenericTouchable.d.ts.map +0 -1
- package/lib/typescript/components/touchables/TouchableOpacity.d.ts +0 -26
- package/lib/typescript/components/touchables/TouchableOpacity.d.ts.map +0 -1
- package/lib/typescript/components/touchables/TouchableWithoutFeedback.d.ts +0 -8
- package/lib/typescript/components/touchables/TouchableWithoutFeedback.d.ts.map +0 -1
- package/lib/typescript/components/touchables/index.d.ts +0 -4
- package/lib/typescript/components/touchables/index.d.ts.map +0 -1
- package/lib/typescript/handlers/NativeViewGestureHandler.d.ts +0 -29
- package/lib/typescript/handlers/NativeViewGestureHandler.d.ts.map +0 -1
- package/lib/typescript/handlers/PanGestureHandler.d.ts +0 -140
- package/lib/typescript/handlers/PanGestureHandler.d.ts.map +0 -1
- package/lib/typescript/handlers/TapGestureHandler.d.ts +0 -58
- package/lib/typescript/handlers/TapGestureHandler.d.ts.map +0 -1
- package/lib/typescript/handlers/createNativeWrapper.d.ts +0 -4
- package/lib/typescript/handlers/createNativeWrapper.d.ts.map +0 -1
- package/lib/typescript/handlers/gestureHandlerCommon.d.ts +0 -2
- package/lib/typescript/handlers/gestureHandlerCommon.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/GestureDetector.d.ts +0 -24
- package/lib/typescript/handlers/gestures/GestureDetector.d.ts.map +0 -1
- package/lib/typescript/init.d.ts +0 -3
- package/lib/typescript/init.d.ts.map +0 -1
- package/src/components/GestureButtons.tsx +0 -334
- package/src/components/GestureHandlerButton.tsx +0 -5
- package/src/components/RNGestureHandlerButton.tsx +0 -23
- package/src/components/touchables/GenericTouchable.tsx +0 -301
- package/src/components/touchables/TouchableOpacity.tsx +0 -76
- package/src/components/touchables/TouchableWithoutFeedback.tsx +0 -14
- package/src/components/touchables/index.ts +0 -7
- package/src/handlers/NativeViewGestureHandler.ts +0 -55
- package/src/handlers/PanGestureHandler.ts +0 -327
- package/src/handlers/TapGestureHandler.ts +0 -95
- package/src/handlers/createNativeWrapper.tsx +0 -81
- package/src/handlers/gestureHandlerCommon.ts +0 -15
- package/src/handlers/gestures/GestureDetector.tsx +0 -823
- package/src/init.ts +0 -18
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
var _reactNative = require("react-native");
|
8
|
+
var _default = _reactNative.TurboModuleRegistry.getEnforcing('RNGestureHandlerModule');
|
9
|
+
exports.default = _default;
|
10
|
+
//# sourceMappingURL=NativeRNGestureHandlerModule.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","TurboModuleRegistry","getEnforcing","exports","default"],"sourceRoot":"../../../src","sources":["specs/NativeRNGestureHandlerModule.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAAgE,IAAAC,QAAA,GAyBjDC,gCAAmB,CAACC,YAAY,CAAO,wBAAwB,CAAC;AAAAC,OAAA,CAAAC,OAAA,GAAAJ,QAAA"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
9
|
+
var _default = (0, _codegenNativeComponent.default)('RNGestureHandlerButton');
|
10
|
+
exports.default = _default;
|
11
|
+
//# sourceMappingURL=RNGestureHandlerButtonNativeComponent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","obj","__esModule","default","_default","codegenNativeComponent","exports"],"sourceRoot":"../../../src","sources":["specs/RNGestureHandlerButtonNativeComponent.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6F,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,IAAAG,QAAA,GAiB9E,IAAAC,+BAAsB,EAAc,wBAAwB,CAAC;AAAAC,OAAA,CAAAH,OAAA,GAAAC,QAAA"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
9
|
+
var _default = (0, _codegenNativeComponent.default)('RNGestureHandlerRootView');
|
10
|
+
exports.default = _default;
|
11
|
+
//# sourceMappingURL=RNGestureHandlerRootViewNativeComponent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","obj","__esModule","default","_default","codegenNativeComponent","exports"],"sourceRoot":"../../../src","sources":["specs/RNGestureHandlerRootViewNativeComponent.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6F,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,IAAAG,QAAA,GAK9E,IAAAC,+BAAsB,EAAc,0BAA0B,CAAC;AAAAC,OAAA,CAAAH,OAAA,GAAAC,QAAA"}
|
@@ -1,3 +1,4 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import NativeRNGestureHandlerModule from '../src/specs/NativeRNGestureHandlerModule';
|
2
|
+
const RNGestureHandlerModule = NativeRNGestureHandlerModule;
|
3
|
+
export default RNGestureHandlerModule;
|
3
4
|
//# sourceMappingURL=RNGestureHandlerModule.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["
|
1
|
+
{"version":3,"names":["NativeRNGestureHandlerModule","RNGestureHandlerModule"],"sourceRoot":"../../src","sources":["RNGestureHandlerModule.ts"],"mappings":"AAAA,OAAOA,4BAA4B,MAAM,2CAA2C;AAEpF,MAAMC,sBAAsB,GAAGD,4BAA4B;AAE3D,eAAeC,sBAAsB"}
|
@@ -1,15 +1,7 @@
|
|
1
|
-
import { ReactNativeViewAttributes, registerViewConfig } from "react-native-harmony";
|
2
1
|
import * as React from 'react';
|
3
|
-
import { maybeInitializeFabric } from
|
2
|
+
import { maybeInitializeFabric } from "react-native-gesture-handler/src/init";
|
4
3
|
import GestureHandlerRootViewContext from 'react-native-gesture-handler/src/GestureHandlerRootViewContext';
|
5
|
-
|
6
|
-
uiViewClassName: 'RNGestureHandlerRootView',
|
7
|
-
bubblingEventTypes: {},
|
8
|
-
directEventTypes: {},
|
9
|
-
validAttributes: {
|
10
|
-
...ReactNativeViewAttributes.UIView
|
11
|
-
}
|
12
|
-
}));
|
4
|
+
import RNGestureHandlerRootViewNativeComponent from '../specs/RNGestureHandlerRootViewNativeComponent';
|
13
5
|
export default function GestureHandlerRootView(props) {
|
14
6
|
// try initialize fabric on the first render, at this point we can
|
15
7
|
// reliably check if fabric is enabled (the function contains a flag
|
@@ -17,6 +9,6 @@ export default function GestureHandlerRootView(props) {
|
|
17
9
|
maybeInitializeFabric();
|
18
10
|
return /*#__PURE__*/React.createElement(GestureHandlerRootViewContext.Provider, {
|
19
11
|
value: true
|
20
|
-
}, /*#__PURE__*/React.createElement(
|
12
|
+
}, /*#__PURE__*/React.createElement(RNGestureHandlerRootViewNativeComponent, props));
|
21
13
|
}
|
22
14
|
//# sourceMappingURL=GestureHandlerRootView.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["
|
1
|
+
{"version":3,"names":["React","maybeInitializeFabric","GestureHandlerRootViewContext","RNGestureHandlerRootViewNativeComponent","GestureHandlerRootView","props","createElement","Provider","value"],"sourceRoot":"../../../src","sources":["components/GestureHandlerRootView.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAG9B,SAASC,qBAAqB,QAAQ,uCAAuC;AAC7E,OAAOC,6BAA6B,MAAM,gEAAgE;AAC1G,OAAOC,uCAAuC,MAAM,kDAAkD;AAItG,eAAe,SAASC,sBAAsBA,CAC5CC,KAAkC,EAClC;EACA;EACA;EACA;EACAJ,qBAAqB,CAAC,CAAC;EAEvB,oBACED,KAAA,CAAAM,aAAA,CAACJ,6BAA6B,CAACK,QAAQ;IAACC,KAAK;EAAA,gBAC3CR,KAAA,CAAAM,aAAA,CAACH,uCAAuC,EAAKE,KAAQ,CACf,CAAC;AAE7C"}
|
@@ -5,15 +5,11 @@ import * as React from 'react';
|
|
5
5
|
import { Platform, UIManager, DeviceEventEmitter } from 'react-native';
|
6
6
|
// @ts-ignore - it isn't typed by TS & don't have definitelyTyped types
|
7
7
|
import deepEqual from 'lodash/isEqual';
|
8
|
-
import
|
8
|
+
import RNGestureHandlerModule from '../RNGestureHandlerModule'; // RNGH: patch
|
9
9
|
|
10
10
|
import { State } from 'react-native-gesture-handler/src/State';
|
11
11
|
import { handlerIDToTag, getNextHandlerTag, registerOldGestureHandler } from 'react-native-gesture-handler/src/handlers/handlersRegistry';
|
12
|
-
import { filterConfig, findNodeHandle
|
13
|
-
// scheduleFlushOperations, // RNGH: patch
|
14
|
-
} from 'react-native-gesture-handler/src/handlers/gestureHandlerCommon';
|
15
|
-
import { scheduleFlushOperations } from "../handlers/gestureHandlerCommon"; // RNGH: patch
|
16
|
-
|
12
|
+
import { filterConfig, findNodeHandle, scheduleFlushOperations } from "react-native-gesture-handler/src/handlers/gestureHandlerCommon";
|
17
13
|
import { isFabric, isJestEnv, tagMessage } from 'react-native-gesture-handler/src/utils';
|
18
14
|
import { ActionType } from 'react-native-gesture-handler/src/ActionType';
|
19
15
|
import { PressabilityDebugView } from 'react-native-gesture-handler/src/handlers/PressabilityDebugView';
|
@@ -42,7 +38,9 @@ const customGHEventsConfig = {
|
|
42
38
|
// The incoming events will be queued but never handled.
|
43
39
|
// Without this piece of code below, you'll get the following JS error:
|
44
40
|
// Unsupported top level event type "topOnGestureHandlerEvent" dispatched
|
45
|
-
...(isFabric() && Platform.OS === '
|
41
|
+
...(isFabric() && Platform.OS === 'harmony' &&
|
42
|
+
// RNGH: patch
|
43
|
+
customGHEventsConfigFabricAndroid)
|
46
44
|
};
|
47
45
|
|
48
46
|
// Add gesture specific events to genericDirectEventTypes object exported from UIManager
|
@@ -114,13 +112,14 @@ const stateToPropMappings = {
|
|
114
112
|
const UNRESOLVED_REFS_RETRY_LIMIT = 1;
|
115
113
|
|
116
114
|
// TODO(TS) - make sure that BaseGestureHandlerProps doesn't need other generic parameter to work with custom properties.
|
117
|
-
export default function createHandler({
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
115
|
+
export default function createHandler(_ref) {
|
116
|
+
let {
|
117
|
+
name,
|
118
|
+
allowedProps = [],
|
119
|
+
config = {},
|
120
|
+
transformProps,
|
121
|
+
customNativeProps = []
|
122
|
+
} = _ref;
|
124
123
|
class Handler extends React.Component {
|
125
124
|
static displayName = name;
|
126
125
|
static contextType = GestureHandlerRootViewContext;
|
@@ -165,16 +164,18 @@ export default function createHandler({
|
|
165
164
|
this.createGestureHandler(filterConfig(transformProps ? transformProps(this.props) : this.props, [...allowedProps, ...customNativeProps], config));
|
166
165
|
this.attachGestureHandler(findNodeHandle(this.viewNode)); // TODO(TS) - check if this can be null
|
167
166
|
}
|
167
|
+
|
168
168
|
componentDidUpdate() {
|
169
169
|
const viewTag = findNodeHandle(this.viewNode);
|
170
170
|
if (this.viewTag !== viewTag) {
|
171
171
|
this.attachGestureHandler(viewTag); // TODO(TS) - check interaction between _viewTag & findNodeHandle
|
172
172
|
}
|
173
|
+
|
173
174
|
this.update(UNRESOLVED_REFS_RETRY_LIMIT);
|
174
175
|
}
|
175
176
|
componentWillUnmount() {
|
176
177
|
var _this$inspectorToggle;
|
177
|
-
(_this$inspectorToggle = this.inspectorToggleListener) === null || _this$inspectorToggle === void 0
|
178
|
+
(_this$inspectorToggle = this.inspectorToggleListener) === null || _this$inspectorToggle === void 0 ? void 0 : _this$inspectorToggle.remove();
|
178
179
|
this.isMountedRef.current = false;
|
179
180
|
RNGestureHandlerModule.dropGestureHandler(this.handlerTag);
|
180
181
|
scheduleFlushOperations();
|
@@ -189,11 +190,11 @@ export default function createHandler({
|
|
189
190
|
if (event.nativeEvent.handlerTag === this.handlerTag) {
|
190
191
|
if (typeof this.props.onGestureEvent === 'function') {
|
191
192
|
var _this$props$onGesture, _this$props;
|
192
|
-
(_this$props$onGesture = (_this$props = this.props).onGestureEvent) === null || _this$props$onGesture === void 0
|
193
|
+
(_this$props$onGesture = (_this$props = this.props).onGestureEvent) === null || _this$props$onGesture === void 0 ? void 0 : _this$props$onGesture.call(_this$props, event);
|
193
194
|
}
|
194
195
|
} else {
|
195
196
|
var _this$props$onGesture2, _this$props2;
|
196
|
-
(_this$props$onGesture2 = (_this$props2 = this.props).onGestureHandlerEvent) === null || _this$props$onGesture2 === void 0
|
197
|
+
(_this$props$onGesture2 = (_this$props2 = this.props).onGestureHandlerEvent) === null || _this$props$onGesture2 === void 0 ? void 0 : _this$props$onGesture2.call(_this$props2, event);
|
197
198
|
}
|
198
199
|
};
|
199
200
|
|
@@ -202,7 +203,7 @@ export default function createHandler({
|
|
202
203
|
if (event.nativeEvent.handlerTag === this.handlerTag) {
|
203
204
|
if (typeof this.props.onHandlerStateChange === 'function') {
|
204
205
|
var _this$props$onHandler, _this$props3;
|
205
|
-
(_this$props$onHandler = (_this$props3 = this.props).onHandlerStateChange) === null || _this$props$onHandler === void 0
|
206
|
+
(_this$props$onHandler = (_this$props3 = this.props).onHandlerStateChange) === null || _this$props$onHandler === void 0 ? void 0 : _this$props$onHandler.call(_this$props3, event);
|
206
207
|
}
|
207
208
|
const state = event.nativeEvent.state;
|
208
209
|
const stateEventName = stateToPropMappings[state];
|
@@ -212,7 +213,7 @@ export default function createHandler({
|
|
212
213
|
}
|
213
214
|
} else {
|
214
215
|
var _this$props$onGesture3, _this$props4;
|
215
|
-
(_this$props$onGesture3 = (_this$props4 = this.props).onGestureHandlerStateChange) === null || _this$props$onGesture3 === void 0
|
216
|
+
(_this$props$onGesture3 = (_this$props4 = this.props).onGestureHandlerStateChange) === null || _this$props$onGesture3 === void 0 ? void 0 : _this$props$onGesture3.call(_this$props4, event);
|
216
217
|
}
|
217
218
|
};
|
218
219
|
refHandler = node => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","Platform","UIManager","DeviceEventEmitter","deepEqual","RNGestureHandlerModule","State","handlerIDToTag","getNextHandlerTag","registerOldGestureHandler","filterConfig","findNodeHandle","scheduleFlushOperations","isFabric","isJestEnv","tagMessage","ActionType","PressabilityDebugView","GestureHandlerRootViewContext","UIManagerAny","customGHEventsConfigFabricAndroid","topOnGestureHandlerEvent","registrationName","topOnGestureHandlerStateChange","customGHEventsConfig","onGestureHandlerEvent","onGestureHandlerStateChange","OS","genericDirectEventTypes","UIManagerConstants","_UIManagerAny$getView","getViewManagerConfig","call","_UIManagerAny$getCons","getConstants","setJSResponder","oldSetJSResponder","clearJSResponder","oldClearJSResponder","tag","blockNativeResponder","handleSetJSResponder","handleClearJSResponder","allowTouches","DEV_ON_ANDROID","__DEV__","addListener","hasUnresolvedRefs","props","extract","refs","Array","isArray","current","some","r","stateToPropMappings","UNDETERMINED","undefined","BEGAN","FAILED","CANCELLED","ACTIVE","END","UNRESOLVED_REFS_RETRY_LIMIT","createHandler","name","allowedProps","config","transformProps","customNativeProps","Handler","Component","displayName","contextType","constructor","handlerTag","propsRef","createRef","isMountedRef","state","id","Error","componentDidMount","inspectorToggleListener","setState","_","update","queueMicrotask","createGestureHandler","attachGestureHandler","viewNode","componentDidUpdate","viewTag","componentWillUnmount","_this$inspectorToggle","remove","dropGestureHandler","handlerID","event","nativeEvent","onGestureEvent","_this$props$onGesture","_this$props","_this$props$onGesture2","_this$props2","onHandlerStateChange","_this$props$onHandler","_this$props3","stateEventName","eventHandler","_this$props$onGesture3","_this$props4","refHandler","node","child","Children","only","children","ref","newConfig","newViewTag","JS_FUNCTION_OLD_API","onGestureStateChange","actionType","_this$props5","_this$props6","_this$props7","REANIMATED_WORKLET","NATIVE_ANIMATED_EVENT","updateGestureHandler","remainingTries","setNativeProps","updates","mergedProps","render","context","gestureEventHandler","gestureStateEventHandler","events","e","grandChildren","type","toArray","push","createElement","key","color","hitSlop","cloneElement","collapsable","handlerType","testID"],"sourceRoot":"..\\..\\..\\src","sources":["handlers/createHandler.tsx"],"mappings":";AAAA;;AAEA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SACEC,QAAQ,EACRC,SAAS,EACTC,kBAAkB,QAEb,cAAc;AACrB;AACA,OAAOC,SAAS,MAAM,gBAAgB;AACtC,SAAQC,sBAAsB,QAAO,2BAA2B,CAAC,CAAC;;AAElE,SAASC,KAAK,QAAQ,wCAAwC;AAC9D,SACEC,cAAc,EACdC,iBAAiB,EACjBC,yBAAyB,QACpB,4DAA4D;AAEnE,SAEEC,YAAY,EAGZC;AACA;AAAA,OACK,gEAAgE;AACvE,SAASC,uBAAuB,QAAQ,kCAAkC,EAAC;;AAE3E,SAASC,QAAQ,EAAEC,SAAS,EAAEC,UAAU,QAAQ,wCAAwC;AACxF,SAASC,UAAU,QAAQ,6CAA6C;AACxE,SAASC,qBAAqB,QAAQ,iEAAiE;AACvG,OAAOC,6BAA6B,MAAM,gEAAgE;AAE1G,MAAMC,YAAY,GAAGjB,SAAgB;AAErC,MAAMkB,iCAAiC,GAAG;EACxCC,wBAAwB,EA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AK,CACbnE,UAAU,CACP,GAAEmD,IAAK,4JACV,CACF,CAAC;MACH;MAEA,IAAI2E,aAAa,GAAG1B,KAAK,CAACnE,KAAK,CAACsE,QAAQ;MACxC,IACEzE,OAAO,IACPsE,KAAK,CAAC2B,IAAI,KACT3B,KAAK,CAAC2B,IAAI,KAAK,wBAAwB,IACtC3B,KAAK,CAAC2B,IAAI,CAAC5E,IAAI,KAAK,MAAM,IAC1BiD,KAAK,CAAC2B,IAAI,CAACrE,WAAW,KAAK,MAAM,CAAC,EACpC;QACAoE,aAAa,GAAG7I,KAAK,CAACoH,QAAQ,CAAC2B,OAAO,CAACF,aAAa,CAAC;QACrDA,aAAa,CAACG,IAAI,eAChBhJ,KAAA,CAAAiJ,aAAA,CAAChI,qBAAqB;UACpBiI,GAAG,EAAC,uBAAuB;UAC3BC,KAAK,EAAC,mBAAmB;UACzBC,OAAO,EAAEjC,KAAK,CAACnE,KAAK,CAACoG;QAAQ,CAC9B,CACH,CAAC;MACH;MAEA,oBAAOpJ,KAAK,CAACqJ,YAAY,CACvBlC,KAAK,EACL;QACEI,GAAG,EAAE,IAAI,CAACN,UAAU;QACpBqC,WAAW,EAAE,KAAK;QAClB,IAAIxI,SAAS,CAAC,CAAC,GACX;UACEyI,WAAW,EAAErF,IAAI;UACjBU,UAAU,EAAE,IAAI,CAACA;QACnB,CAAC,GACD,CAAC,CAAC,CAAC;QACP4E,MAAM,EAAE,IAAI,CAACxG,KAAK,CAACwG,MAAM,IAAIrC,KAAK,CAACnE,KAAK,CAACwG,MAAM;QAC/C,GAAGb;MACL,CAAC,EACDE,aACF,CAAC;IACH;EACF;EACA,OAAOtE,OAAO;AAChB"}
|
1
|
+
{"version":3,"names":["React","Platform","UIManager","DeviceEventEmitter","deepEqual","RNGestureHandlerModule","State","handlerIDToTag","getNextHandlerTag","registerOldGestureHandler","filterConfig","findNodeHandle","scheduleFlushOperations","isFabric","isJestEnv","tagMessage","ActionType","PressabilityDebugView","GestureHandlerRootViewContext","UIManagerAny","customGHEventsConfigFabricAndroid","topOnGestureHandlerEvent","registrationName","topOnGestureHandlerStateChange","customGHEventsConfig","onGestureHandlerEvent","onGestureHandlerStateChange","OS","genericDirectEventTypes","UIManagerConstants","_UIManagerAny$getView","getViewManagerConfig","call","_UIManagerAny$getCons","getConstants","setJSResponder","oldSetJSResponder","clearJSResponder","oldClearJSResponder","tag","blockNativeResponder","handleSetJSResponder","handleClearJSResponder","allowTouches","DEV_ON_ANDROID","__DEV__","addListener","hasUnresolvedRefs","props","extract","refs","Array","isArray","current","some","r","stateToPropMappings","UNDETERMINED","undefined","BEGAN","FAILED","CANCELLED","ACTIVE","END","UNRESOLVED_REFS_RETRY_LIMIT","createHandler","_ref","name","allowedProps","config","transformProps","customNativeProps","Handler","Component","displayName","contextType","constructor","handlerTag","propsRef","createRef","isMountedRef","state","id","Error","componentDidMount","inspectorToggleListener","setState","_","update","queueMicrotask","createGestureHandler","attachGestureHandler","viewNode","componentDidUpdate","viewTag","componentWillUnmount","_this$inspectorToggle","remove","dropGestureHandler","handlerID","event","nativeEvent","onGestureEvent","_this$props$onGesture","_this$props","_this$props$onGesture2","_this$props2","onHandlerStateChange","_this$props$onHandler","_this$props3","stateEventName","eventHandler","_this$props$onGesture3","_this$props4","refHandler","node","child","Children","only","children","ref","newConfig","newViewTag","JS_FUNCTION_OLD_API","onGestureStateChange","actionType","_this$props5","_this$props6","_this$props7","REANIMATED_WORKLET","NATIVE_ANIMATED_EVENT","updateGestureHandler","remainingTries","setNativeProps","updates","mergedProps","render","context","gestureEventHandler","gestureStateEventHandler","events","e","grandChildren","type","toArray","push","createElement","key","color","hitSlop","cloneElement","collapsable","handlerType","testID"],"sourceRoot":"../../../src","sources":["handlers/createHandler.tsx"],"mappings":";AAAA;;AAEA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SACEC,QAAQ,EACRC,SAAS,EACTC,kBAAkB,QAEb,cAAc;AACrB;AACA,OAAOC,SAAS,MAAM,gBAAgB;AACtC,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E,KAAK;QAClB,IAAIzI,SAAS,CAAC,CAAC,GACX;UACE0I,WAAW,EAAErF,IAAI;UACjBU,UAAU,EAAE,IAAI,CAACA;QACnB,CAAC,GACD,CAAC,CAAC,CAAC;QACP4E,MAAM,EAAE,IAAI,CAACzG,KAAK,CAACyG,MAAM,IAAIrC,KAAK,CAACpE,KAAK,CAACyG,MAAM;QAC/C,GAAGb;MACL,CAAC,EACDE,aACF,CAAC;IACH;EACF;EACA,OAAOtE,OAAO;AAChB"}
|
package/lib/module/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
global.isFormsStackingContext = () => true; // TODO: add using JSI
|
2
2
|
|
3
|
-
import { initialize } from '
|
3
|
+
import { initialize } from 'react-native-gesture-handler/src/init';
|
4
4
|
|
5
5
|
// export { Directions } from './Directions';
|
6
6
|
export { State } from 'react-native-gesture-handler/src/State';
|
@@ -20,7 +20,6 @@ export { default as GestureHandlerRootView } from './components/GestureHandlerRo
|
|
20
20
|
// GestureUpdateEvent,
|
21
21
|
// GestureStateChangeEvent,
|
22
22
|
// } from './handlers/gestureHandlerCommon';
|
23
|
-
|
24
23
|
// export type {
|
25
24
|
// TapGestureHandlerEventPayload,
|
26
25
|
// TapGestureHandlerProps,
|
@@ -52,10 +51,10 @@ export { default as GestureHandlerRootView } from './components/GestureHandlerRo
|
|
52
51
|
// FlingGestureHandlerEventPayload,
|
53
52
|
// FlingGestureHandlerProps,
|
54
53
|
// } from './handlers/FlingGestureHandler';
|
55
|
-
export { TapGestureHandler } from '
|
54
|
+
export { TapGestureHandler } from 'react-native-gesture-handler/src/handlers/TapGestureHandler';
|
56
55
|
// export { ForceTouchGestureHandler } from './handlers/ForceTouchGestureHandler';
|
57
56
|
// export { LongPressGestureHandler } from './handlers/LongPressGestureHandler';
|
58
|
-
export { PanGestureHandler } from '
|
57
|
+
export { PanGestureHandler } from 'react-native-gesture-handler/src/handlers/PanGestureHandler';
|
59
58
|
// export { PinchGestureHandler } from './handlers/PinchGestureHandler';
|
60
59
|
// export { RotationGestureHandler } from './handlers/RotationGestureHandler';
|
61
60
|
// export { FlingGestureHandler } from './handlers/FlingGestureHandler';
|
@@ -64,7 +63,7 @@ export { PanGestureHandler } from './handlers/PanGestureHandler';
|
|
64
63
|
// NativeViewGestureHandlerPayload,
|
65
64
|
// NativeViewGestureHandlerProps,
|
66
65
|
// } from './handlers/NativeViewGestureHandler';
|
67
|
-
export { GestureDetector } from '
|
66
|
+
export { GestureDetector } from 'react-native-gesture-handler/src/handlers/gestures/GestureDetector';
|
68
67
|
export { GestureObjects as Gesture } from 'react-native-gesture-handler/src/handlers/gestures/gestureObjects';
|
69
68
|
// export type { TapGestureType as TapGesture } from './handlers/gestures/tapGesture';
|
70
69
|
// export type { PanGestureType as PanGesture } from './handlers/gestures/panGesture';
|
@@ -99,15 +98,8 @@ export { GestureObjects as Gesture } from 'react-native-gesture-handler/src/hand
|
|
99
98
|
export {
|
100
99
|
// TouchableHighlight,
|
101
100
|
// TouchableNativeFeedback,
|
102
|
-
TouchableOpacity, TouchableWithoutFeedback } from '
|
103
|
-
|
104
|
-
// ScrollView,
|
105
|
-
// Switch,
|
106
|
-
// TextInput,
|
107
|
-
// DrawerLayoutAndroid,
|
108
|
-
// FlatList,
|
109
|
-
// RefreshControl,
|
110
|
-
// } from './components/GestureComponents';
|
101
|
+
TouchableOpacity, TouchableWithoutFeedback } from 'react-native-gesture-handler/src/components/touchables';
|
102
|
+
export { ScrollView, Switch, TextInput, DrawerLayoutAndroid, FlatList, RefreshControl } from 'react-native-gesture-handler/src/components/GestureComponents';
|
111
103
|
// export type {
|
112
104
|
// //events
|
113
105
|
// GestureHandlerGestureEvent,
|
package/lib/module/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["global","isFormsStackingContext","initialize","State","default","GestureHandlerRootView","TapGestureHandler","PanGestureHandler","GestureDetector","GestureObjects","Gesture","TouchableOpacity","TouchableWithoutFeedback"],"sourceRoot":"
|
1
|
+
{"version":3,"names":["global","isFormsStackingContext","initialize","State","default","GestureHandlerRootView","TapGestureHandler","PanGestureHandler","GestureDetector","GestureObjects","Gesture","TouchableOpacity","TouchableWithoutFeedback","ScrollView","Switch","TextInput","DrawerLayoutAndroid","FlatList","RefreshControl"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"AAIAA,MAAM,CAACC,sBAAsB,GAAG,MAAM,IAAI,CAAC,CAAC;;AAE5C,SAASC,UAAU,QAAQ,uCAAuC;;AAElE;AACA,SAASC,KAAK,QAAQ,wCAAwC;AAC9D;AACA,SAASC,OAAO,IAAIC,sBAAsB,QAAQ,qCAAqC;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,iBAAiB,QAAQ,6DAA6D;AAC/F;AACA;AACA,SAASC,iBAAiB,QAAQ,6DAA6D;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,eAAe,QAAQ,oEAAoE;AACpG,SAASC,cAAc,IAAIC,OAAO,QAAQ,mEAAmE;AAC7G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACAC,gBAAgB,EAChBC,wBAAwB,QACnB,wDAAwD;AAC/D,SACEC,UAAU,EACVC,MAAM,EACNC,SAAS,EACTC,mBAAmB,EACnBC,QAAQ,EACRC,cAAc,QACT,+DAA+D;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEAhB,UAAU,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["specs/NativeRNGestureHandlerModule.ts"],"mappings":"AAAA,SAASA,mBAAmB,QAAqB,cAAc;AAyB/D,eAAeA,mBAAmB,CAACC,YAAY,CAAO,wBAAwB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../../src","sources":["specs/RNGestureHandlerButtonNativeComponent.ts"],"mappings":"AAAA,OAAOA,sBAAsB,MAAM,yDAAyD;AAiB5F,eAAeA,sBAAsB,CAAc,wBAAwB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../../src","sources":["specs/RNGestureHandlerRootViewNativeComponent.ts"],"mappings":"AAAA,OAAOA,sBAAsB,MAAM,yDAAyD;AAK5F,eAAeA,sBAAsB,CAAc,0BAA0B,CAAC"}
|
@@ -1,7 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
interface Spec extends TurboModule, RNGestureHandlerModuleProps {
|
4
|
-
}
|
5
|
-
export declare const RNGestureHandlerModule: Spec;
|
6
|
-
export {};
|
1
|
+
declare const RNGestureHandlerModule: import("../src/specs/NativeRNGestureHandlerModule").Spec;
|
2
|
+
export default RNGestureHandlerModule;
|
7
3
|
//# sourceMappingURL=RNGestureHandlerModule.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RNGestureHandlerModule.d.ts","sourceRoot":"","sources":["../../src/RNGestureHandlerModule.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"RNGestureHandlerModule.d.ts","sourceRoot":"","sources":["../../src/RNGestureHandlerModule.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,sBAAsB,0DAA+B,CAAC;AAE5D,eAAe,sBAAsB,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import { PropsWithChildren } from 'react';
|
3
|
-
import { ViewProps } from 'react-native';
|
4
|
-
export interface GestureHandlerRootViewProps extends PropsWithChildren<ViewProps> {
|
5
|
-
}
|
6
|
-
export default function GestureHandlerRootView(props: GestureHandlerRootViewProps): React.JSX.Element;
|
1
|
+
import * as React from 'react';
|
2
|
+
import { PropsWithChildren } from 'react';
|
3
|
+
import { ViewProps } from 'react-native';
|
4
|
+
export interface GestureHandlerRootViewProps extends PropsWithChildren<ViewProps> {
|
5
|
+
}
|
6
|
+
export default function GestureHandlerRootView(props: GestureHandlerRootViewProps): React.JSX.Element;
|
7
7
|
//# sourceMappingURL=GestureHandlerRootView.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"GestureHandlerRootView.d.ts","sourceRoot":"","sources":["../../../src/components/GestureHandlerRootView.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"GestureHandlerRootView.d.ts","sourceRoot":"","sources":["../../../src/components/GestureHandlerRootView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,MAAM,WAAW,2BACf,SAAQ,iBAAiB,CAAC,SAAS,CAAC;CAAG;AAEzC,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAC5C,KAAK,EAAE,2BAA2B,qBAYnC"}
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import { BaseGestureHandlerProps } from
|
3
|
-
declare type CreateHandlerArgs<HandlerPropsT extends Record<string, unknown>> = Readonly<{
|
4
|
-
name: string;
|
5
|
-
allowedProps: Readonly<Extract<keyof HandlerPropsT, string>[]>;
|
6
|
-
config: Readonly<Record<string, unknown>>;
|
7
|
-
transformProps?: (props: HandlerPropsT) => HandlerPropsT;
|
8
|
-
customNativeProps?: Readonly<string[]>;
|
9
|
-
}>;
|
10
|
-
export default function createHandler<T extends BaseGestureHandlerProps<U>, U extends Record<string, unknown>>({ name, allowedProps, config, transformProps, customNativeProps, }: CreateHandlerArgs<T>): React.ComponentType<T & React.RefAttributes<any>>;
|
11
|
-
export {};
|
1
|
+
import * as React from 'react';
|
2
|
+
import { BaseGestureHandlerProps } from "react-native-gesture-handler/src/handlers/gestureHandlerCommon";
|
3
|
+
declare type CreateHandlerArgs<HandlerPropsT extends Record<string, unknown>> = Readonly<{
|
4
|
+
name: string;
|
5
|
+
allowedProps: Readonly<Extract<keyof HandlerPropsT, string>[]>;
|
6
|
+
config: Readonly<Record<string, unknown>>;
|
7
|
+
transformProps?: (props: HandlerPropsT) => HandlerPropsT;
|
8
|
+
customNativeProps?: Readonly<string[]>;
|
9
|
+
}>;
|
10
|
+
export default function createHandler<T extends BaseGestureHandlerProps<U>, U extends Record<string, unknown>>({ name, allowedProps, config, transformProps, customNativeProps, }: CreateHandlerArgs<T>): React.ComponentType<T & React.RefAttributes<any>>;
|
11
|
+
export {};
|
12
12
|
//# sourceMappingURL=createHandler.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createHandler.d.ts","sourceRoot":"","sources":["../../../src/handlers/createHandler.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAkB/B,OAAO,EACL,uBAAuB,EAMxB,MAAM,gEAAgE,CAAC;
|
1
|
+
{"version":3,"file":"createHandler.d.ts","sourceRoot":"","sources":["../../../src/handlers/createHandler.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAkB/B,OAAO,EACL,uBAAuB,EAMxB,MAAM,gEAAgE,CAAC;AA8GxE,aAAK,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;AAWL,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,CAiX1E"}
|
@@ -1,9 +1,10 @@
|
|
1
|
-
export { State } from 'react-native-gesture-handler/src/State';
|
2
|
-
export { default as GestureHandlerRootView } from './components/GestureHandlerRootView';
|
3
|
-
export type { GestureType } from 'react-native-gesture-handler/src/handlers/gestures/gesture';
|
4
|
-
export { TapGestureHandler } from '
|
5
|
-
export { PanGestureHandler } from '
|
6
|
-
export { GestureDetector } from '
|
7
|
-
export { GestureObjects as Gesture } from 'react-native-gesture-handler/src/handlers/gestures/gestureObjects';
|
8
|
-
export { TouchableOpacity, TouchableWithoutFeedback, } from '
|
1
|
+
export { State } from 'react-native-gesture-handler/src/State';
|
2
|
+
export { default as GestureHandlerRootView } from './components/GestureHandlerRootView';
|
3
|
+
export type { GestureType } from 'react-native-gesture-handler/src/handlers/gestures/gesture';
|
4
|
+
export { TapGestureHandler } from 'react-native-gesture-handler/src/handlers/TapGestureHandler';
|
5
|
+
export { PanGestureHandler } from 'react-native-gesture-handler/src/handlers/PanGestureHandler';
|
6
|
+
export { GestureDetector } from 'react-native-gesture-handler/src/handlers/gestures/GestureDetector';
|
7
|
+
export { GestureObjects as Gesture } from 'react-native-gesture-handler/src/handlers/gestures/gestureObjects';
|
8
|
+
export { TouchableOpacity, TouchableWithoutFeedback, } from 'react-native-gesture-handler/src/components/touchables';
|
9
|
+
export { ScrollView, Switch, TextInput, DrawerLayoutAndroid, FlatList, RefreshControl, } from 'react-native-gesture-handler/src/components/GestureComponents';
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAE/D,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAexF,YAAY,EAAE,WAAW,EAAE,MAAM,4DAA4D,CAAC;AAgC9F,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAE/D,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAexF,YAAY,EAAE,WAAW,EAAE,MAAM,4DAA4D,CAAC;AAgC9F,OAAO,EAAE,iBAAiB,EAAE,MAAM,6DAA6D,CAAC;AAGhG,OAAO,EAAE,iBAAiB,EAAE,MAAM,6DAA6D,CAAC;AAShG,OAAO,EAAE,eAAe,EAAE,MAAM,oEAAoE,CAAC;AACrG,OAAO,EAAE,cAAc,IAAI,OAAO,EAAE,MAAM,mEAAmE,CAAC;AA+B9G,OAAO,EAGL,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,UAAU,EACV,MAAM,EACN,SAAS,EACT,mBAAmB,EACnB,QAAQ,EACR,cAAc,GACf,MAAM,+DAA+D,CAAC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { TurboModule } from 'react-native';
|
2
|
+
import { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
3
|
+
export interface Spec extends TurboModule {
|
4
|
+
handleSetJSResponder: (tag: Int32, blockNativeResponder: boolean) => void;
|
5
|
+
handleClearJSResponder: () => void;
|
6
|
+
createGestureHandler: (handlerName: string, handlerTag: Int32, config: Object) => void;
|
7
|
+
attachGestureHandler: (handlerTag: Int32, newView: Int32, actionType: Int32) => void;
|
8
|
+
updateGestureHandler: (handlerTag: Int32, newConfig: Object) => void;
|
9
|
+
dropGestureHandler: (handlerTag: Int32) => void;
|
10
|
+
install: () => boolean;
|
11
|
+
flushOperations: () => void;
|
12
|
+
}
|
13
|
+
declare const _default: Spec;
|
14
|
+
export default _default;
|
15
|
+
//# sourceMappingURL=NativeRNGestureHandlerModule.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NativeRNGestureHandlerModule.d.ts","sourceRoot":"","sources":["../../../src/specs/NativeRNGestureHandlerModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,WAAW,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAElE,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,oBAAoB,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,oBAAoB,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1E,sBAAsB,EAAE,MAAM,IAAI,CAAC;IACnC,oBAAoB,EAAE,CACpB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,KAAK,EAGjB,MAAM,EAAE,MAAM,KACX,IAAI,CAAC;IACV,oBAAoB,EAAE,CACpB,UAAU,EAAE,KAAK,EACjB,OAAO,EAAE,KAAK,EACd,UAAU,EAAE,KAAK,KACd,IAAI,CAAC;IAEV,oBAAoB,EAAE,CAAC,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACrE,kBAAkB,EAAE,CAAC,UAAU,EAAE,KAAK,KAAK,IAAI,CAAC;IAChD,OAAO,EAAE,MAAM,OAAO,CAAC;IACvB,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B;;AAED,wBAAgF"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/// <reference types="react-native/types/modules/codegen" />
|
2
|
+
import type { Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
|
3
|
+
import type { ViewProps, ColorValue } from 'react-native';
|
4
|
+
interface NativeProps extends ViewProps {
|
5
|
+
exclusive?: WithDefault<boolean, true>;
|
6
|
+
foreground?: boolean;
|
7
|
+
borderless?: boolean;
|
8
|
+
enabled?: WithDefault<boolean, true>;
|
9
|
+
rippleColor?: ColorValue;
|
10
|
+
rippleRadius?: Int32;
|
11
|
+
touchSoundDisabled?: WithDefault<boolean, false>;
|
12
|
+
}
|
13
|
+
declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
|
14
|
+
export default _default;
|
15
|
+
//# sourceMappingURL=RNGestureHandlerButtonNativeComponent.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RNGestureHandlerButtonNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/specs/RNGestureHandlerButtonNativeComponent.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EACV,KAAK,EACL,WAAW,EACZ,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1D,UAAU,WAAY,SAAQ,SAAS;IACrC,SAAS,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACrC,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,kBAAkB,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;CAClD;;AAED,wBAA6E"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/// <reference types="react-native/types/modules/codegen" />
|
2
|
+
import type { ViewProps } from 'react-native';
|
3
|
+
interface NativeProps extends ViewProps {
|
4
|
+
}
|
5
|
+
declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
|
6
|
+
export default _default;
|
7
|
+
//# sourceMappingURL=RNGestureHandlerRootViewNativeComponent.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RNGestureHandlerRootViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/specs/RNGestureHandlerRootViewNativeComponent.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,UAAU,WAAY,SAAQ,SAAS;CAAG;;AAE1C,wBAA+E"}
|
package/package.json
CHANGED
@@ -1,22 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-oh-tpl/react-native-gesture-handler",
|
3
3
|
"harmony": {
|
4
|
-
"alias": "react-native-gesture-handler"
|
4
|
+
"alias": "react-native-gesture-handler",
|
5
|
+
"redirectInternalImports": true
|
5
6
|
},
|
6
|
-
"
|
7
|
+
"repository": {
|
8
|
+
"type": "git",
|
9
|
+
"url": "https://github.com/react-native-oh-library/react-native-harmony-gesture-handler.git"
|
10
|
+
},
|
11
|
+
"version": "2.12.9-1",
|
7
12
|
"description": "",
|
8
13
|
"react-native": "src/index.ts",
|
9
14
|
"main": "lib/commonjs/index.js",
|
10
15
|
"module": "lib/module/index.js",
|
11
16
|
"types": "lib/typescript/index.d.ts",
|
12
|
-
"repository": {
|
13
|
-
"type": "git",
|
14
|
-
"url": "https://github.com/react-native-oh-library/react-native-gesture-handler.git"
|
15
|
-
},
|
16
|
-
"publishConfig": {
|
17
|
-
"registry": "https://registry.npmjs.org/",
|
18
|
-
"access": "public"
|
19
|
-
},
|
20
17
|
"scripts": {
|
21
18
|
"prepack": "bob build",
|
22
19
|
"test": "jest",
|
@@ -32,7 +29,7 @@
|
|
32
29
|
"author": "",
|
33
30
|
"license": "ISC",
|
34
31
|
"dependencies": {
|
35
|
-
"react-native-gesture-handler": "2.12.1
|
32
|
+
"react-native-gesture-handler": "2.12.1"
|
36
33
|
},
|
37
34
|
"devDependencies": {
|
38
35
|
"@babel/core": "^7.12.9",
|
@@ -40,12 +37,11 @@
|
|
40
37
|
"@babel/preset-env": "^7.12.11",
|
41
38
|
"@babel/preset-typescript": "^7.12.7",
|
42
39
|
"@babel/runtime": "^7.12.5",
|
43
|
-
"metro-react-native-babel-preset": "^0.64.0",
|
44
40
|
"@types/react": "^18.2.18",
|
41
|
+
"metro-react-native-babel-preset": "^0.64.0",
|
45
42
|
"react": "^18.2.0",
|
46
43
|
"react-native": "^0.72.0",
|
47
44
|
"react-native-builder-bob": "^0.21.3",
|
48
|
-
"react-native-harmony": "npm:@react-native-oh/react-native-harmony@^0.72.11",
|
49
45
|
"typescript": "4.5.5"
|
50
46
|
},
|
51
47
|
"files": [
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import
|
2
|
-
import {RNGestureHandlerModuleProps} from "react-native-gesture-handler/src/RNGestureHandlerModule"
|
1
|
+
import NativeRNGestureHandlerModule from '../src/specs/NativeRNGestureHandlerModule';
|
3
2
|
|
4
|
-
|
3
|
+
const RNGestureHandlerModule = NativeRNGestureHandlerModule;
|
5
4
|
|
6
|
-
export
|
5
|
+
export default RNGestureHandlerModule;
|