@react-native-oh-tpl/react-native-gesture-handler 2.12.6-1 → 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 +18 -7
- package/harmony/gesture_handler/hvigorfile.ts +2 -2
- package/harmony/gesture_handler/index.ets +3 -3
- package/harmony/gesture_handler/oh-package-lock.json5 +18 -0
- package/harmony/gesture_handler/oh-package.json5 +12 -11
- package/harmony/gesture_handler/src/main/cpp/CMakeLists.txt +8 -8
- package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.cpp +103 -34
- package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.h +21 -15
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonComponentDescriptor.h +36 -60
- 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 +22 -17
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.h +15 -12
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerPackage.h +72 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewComponentDescriptor.h +36 -60
- 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/CircularBuffer.ts +42 -42
- package/harmony/gesture_handler/src/main/ets/Event.ts +67 -67
- package/harmony/gesture_handler/src/main/ets/EventDispatcher.ts +52 -37
- package/harmony/gesture_handler/src/main/ets/GestureHandler.ts +663 -663
- package/harmony/gesture_handler/src/main/ets/{GestureHandlerArkUIAdapter.ets → GestureHandlerArkUIAdapter.ts} +202 -201
- package/harmony/gesture_handler/src/main/ets/GestureHandlerFactory.ts +44 -44
- package/harmony/gesture_handler/src/main/ets/GestureHandlerOrchestrator.ts +280 -280
- package/harmony/gesture_handler/src/main/ets/GestureHandlerPackage.ts +22 -22
- package/harmony/gesture_handler/src/main/ets/GestureHandlerRegistry.ts +27 -27
- package/harmony/gesture_handler/src/main/ets/InteractionManager.ts +108 -108
- package/harmony/gesture_handler/src/main/ets/LeastSquareSolver.ts +182 -182
- package/harmony/gesture_handler/src/main/ets/NativeViewGestureHandler.ts +114 -114
- package/harmony/gesture_handler/src/main/ets/OutgoingEvent.ts +33 -33
- package/harmony/gesture_handler/src/main/ets/PanGestureHandler.ts +327 -327
- package/harmony/gesture_handler/src/main/ets/PointerTracker.ts +239 -239
- package/harmony/gesture_handler/src/main/ets/RNGHError.ts +4 -4
- package/harmony/gesture_handler/src/main/ets/RNGHLogger.ts +47 -28
- package/harmony/gesture_handler/src/main/ets/{RNGHRootTouchHandler.ets → RNGHRootTouchHandlerArkTS.ts} +59 -57
- package/harmony/gesture_handler/src/main/ets/RNGHRootTouchHandlerCAPI.ts +87 -0
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerButton.ets +37 -36
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerModule.ts +183 -125
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerRootView.ets +52 -55
- package/harmony/gesture_handler/src/main/ets/RNOHScrollLocker.ts +23 -11
- package/harmony/gesture_handler/src/main/ets/State.ts +46 -46
- package/harmony/gesture_handler/src/main/ets/TapGestureHandler.ts +205 -205
- package/harmony/gesture_handler/src/main/ets/Vector2D.ts +36 -36
- package/harmony/gesture_handler/src/main/ets/VelocityTracker.ts +98 -98
- package/harmony/gesture_handler/src/main/ets/View.ts +70 -70
- package/harmony/gesture_handler/src/main/ets/ViewRegistry.ts +42 -42
- 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/pages/Index.ets +16 -16
- package/harmony/gesture_handler/src/main/ets/types.ts +25 -0
- package/harmony/gesture_handler/src/main/ets/webviewability/WebviewAbility.ts +41 -41
- package/harmony/gesture_handler/src/main/module.json5 +7 -7
- package/harmony/gesture_handler/src/main/resources/base/element/color.json +7 -7
- package/harmony/gesture_handler/src/main/resources/base/element/string.json +15 -15
- package/harmony/gesture_handler/src/main/resources/base/profile/main_pages.json +5 -5
- package/harmony/gesture_handler/src/main/resources/en_US/element/string.json +15 -15
- package/harmony/gesture_handler/src/main/resources/zh_CN/element/string.json +15 -15
- 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 +66 -70
- package/src/RNGestureHandlerModule.ts +5 -6
- package/src/components/GestureHandlerRootView.tsx +23 -34
- package/src/handlers/createHandler.tsx +534 -535
- package/src/index.ts +172 -172
- 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/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
@@ -7,11 +7,10 @@ exports.default = createHandler;
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
8
8
|
var _reactNative = require("react-native");
|
9
9
|
var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
|
10
|
-
var _RNGestureHandlerModule = require("../RNGestureHandlerModule");
|
10
|
+
var _RNGestureHandlerModule = _interopRequireDefault(require("../RNGestureHandlerModule"));
|
11
11
|
var _State = require("react-native-gesture-handler/src/State");
|
12
12
|
var _handlersRegistry = require("react-native-gesture-handler/src/handlers/handlersRegistry");
|
13
13
|
var _gestureHandlerCommon = require("react-native-gesture-handler/src/handlers/gestureHandlerCommon");
|
14
|
-
var _gestureHandlerCommon2 = require("../handlers/gestureHandlerCommon");
|
15
14
|
var _utils = require("react-native-gesture-handler/src/utils");
|
16
15
|
var _ActionType = require("react-native-gesture-handler/src/ActionType");
|
17
16
|
var _PressabilityDebugView = require("react-native-gesture-handler/src/handlers/PressabilityDebugView");
|
@@ -19,10 +18,9 @@ var _GestureHandlerRootViewContext = _interopRequireDefault(require("react-nativ
|
|
19
18
|
var _UIManagerAny$getView, _UIManagerAny$getCons; // RNGH: patching the import to RNGestureHandlerModule
|
20
19
|
// @ts-ignore - it isn't typed by TS & don't have definitelyTyped types
|
21
20
|
// RNGH: patch
|
22
|
-
// RNGH: patch
|
23
21
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
24
|
-
function _getRequireWildcardCache(
|
25
|
-
function _interopRequireWildcard(
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
23
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
26
24
|
const UIManagerAny = _reactNative.UIManager;
|
27
25
|
const customGHEventsConfigFabricAndroid = {
|
28
26
|
topOnGestureHandlerEvent: {
|
@@ -47,7 +45,9 @@ const customGHEventsConfig = {
|
|
47
45
|
// The incoming events will be queued but never handled.
|
48
46
|
// Without this piece of code below, you'll get the following JS error:
|
49
47
|
// Unsupported top level event type "topOnGestureHandlerEvent" dispatched
|
50
|
-
...((0, _utils.isFabric)() && _reactNative.Platform.OS === '
|
48
|
+
...((0, _utils.isFabric)() && _reactNative.Platform.OS === 'harmony' &&
|
49
|
+
// RNGH: patch
|
50
|
+
customGHEventsConfigFabricAndroid)
|
51
51
|
};
|
52
52
|
|
53
53
|
// Add gesture specific events to genericDirectEventTypes object exported from UIManager
|
@@ -79,11 +79,11 @@ const {
|
|
79
79
|
}
|
80
80
|
} = UIManagerAny;
|
81
81
|
UIManagerAny.setJSResponder = (tag, blockNativeResponder) => {
|
82
|
-
_RNGestureHandlerModule.
|
82
|
+
_RNGestureHandlerModule.default.handleSetJSResponder(tag, blockNativeResponder);
|
83
83
|
oldSetJSResponder(tag, blockNativeResponder);
|
84
84
|
};
|
85
85
|
UIManagerAny.clearJSResponder = () => {
|
86
|
-
_RNGestureHandlerModule.
|
86
|
+
_RNGestureHandlerModule.default.handleClearJSResponder();
|
87
87
|
oldClearJSResponder();
|
88
88
|
};
|
89
89
|
let allowTouches = true;
|
@@ -119,13 +119,14 @@ const stateToPropMappings = {
|
|
119
119
|
const UNRESOLVED_REFS_RETRY_LIMIT = 1;
|
120
120
|
|
121
121
|
// TODO(TS) - make sure that BaseGestureHandlerProps doesn't need other generic parameter to work with custom properties.
|
122
|
-
function createHandler({
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
122
|
+
function createHandler(_ref) {
|
123
|
+
let {
|
124
|
+
name,
|
125
|
+
allowedProps = [],
|
126
|
+
config = {},
|
127
|
+
transformProps,
|
128
|
+
customNativeProps = []
|
129
|
+
} = _ref;
|
129
130
|
class Handler extends React.Component {
|
130
131
|
static displayName = name;
|
131
132
|
static contextType = _GestureHandlerRootViewContext.default;
|
@@ -170,19 +171,21 @@ function createHandler({
|
|
170
171
|
this.createGestureHandler((0, _gestureHandlerCommon.filterConfig)(transformProps ? transformProps(this.props) : this.props, [...allowedProps, ...customNativeProps], config));
|
171
172
|
this.attachGestureHandler((0, _gestureHandlerCommon.findNodeHandle)(this.viewNode)); // TODO(TS) - check if this can be null
|
172
173
|
}
|
174
|
+
|
173
175
|
componentDidUpdate() {
|
174
176
|
const viewTag = (0, _gestureHandlerCommon.findNodeHandle)(this.viewNode);
|
175
177
|
if (this.viewTag !== viewTag) {
|
176
178
|
this.attachGestureHandler(viewTag); // TODO(TS) - check interaction between _viewTag & findNodeHandle
|
177
179
|
}
|
180
|
+
|
178
181
|
this.update(UNRESOLVED_REFS_RETRY_LIMIT);
|
179
182
|
}
|
180
183
|
componentWillUnmount() {
|
181
184
|
var _this$inspectorToggle;
|
182
|
-
(_this$inspectorToggle = this.inspectorToggleListener) === null || _this$inspectorToggle === void 0
|
185
|
+
(_this$inspectorToggle = this.inspectorToggleListener) === null || _this$inspectorToggle === void 0 ? void 0 : _this$inspectorToggle.remove();
|
183
186
|
this.isMountedRef.current = false;
|
184
|
-
_RNGestureHandlerModule.
|
185
|
-
(0,
|
187
|
+
_RNGestureHandlerModule.default.dropGestureHandler(this.handlerTag);
|
188
|
+
(0, _gestureHandlerCommon.scheduleFlushOperations)();
|
186
189
|
// We can't use this.props.id directly due to TS generic type narrowing bug, see https://github.com/microsoft/TypeScript/issues/13995 for more context
|
187
190
|
const handlerID = this.props.id;
|
188
191
|
if (handlerID) {
|
@@ -194,11 +197,11 @@ function createHandler({
|
|
194
197
|
if (event.nativeEvent.handlerTag === this.handlerTag) {
|
195
198
|
if (typeof this.props.onGestureEvent === 'function') {
|
196
199
|
var _this$props$onGesture, _this$props;
|
197
|
-
(_this$props$onGesture = (_this$props = this.props).onGestureEvent) === null || _this$props$onGesture === void 0
|
200
|
+
(_this$props$onGesture = (_this$props = this.props).onGestureEvent) === null || _this$props$onGesture === void 0 ? void 0 : _this$props$onGesture.call(_this$props, event);
|
198
201
|
}
|
199
202
|
} else {
|
200
203
|
var _this$props$onGesture2, _this$props2;
|
201
|
-
(_this$props$onGesture2 = (_this$props2 = this.props).onGestureHandlerEvent) === null || _this$props$onGesture2 === void 0
|
204
|
+
(_this$props$onGesture2 = (_this$props2 = this.props).onGestureHandlerEvent) === null || _this$props$onGesture2 === void 0 ? void 0 : _this$props$onGesture2.call(_this$props2, event);
|
202
205
|
}
|
203
206
|
};
|
204
207
|
|
@@ -207,7 +210,7 @@ function createHandler({
|
|
207
210
|
if (event.nativeEvent.handlerTag === this.handlerTag) {
|
208
211
|
if (typeof this.props.onHandlerStateChange === 'function') {
|
209
212
|
var _this$props$onHandler, _this$props3;
|
210
|
-
(_this$props$onHandler = (_this$props3 = this.props).onHandlerStateChange) === null || _this$props$onHandler === void 0
|
213
|
+
(_this$props$onHandler = (_this$props3 = this.props).onHandlerStateChange) === null || _this$props$onHandler === void 0 ? void 0 : _this$props$onHandler.call(_this$props3, event);
|
211
214
|
}
|
212
215
|
const state = event.nativeEvent.state;
|
213
216
|
const stateEventName = stateToPropMappings[state];
|
@@ -217,7 +220,7 @@ function createHandler({
|
|
217
220
|
}
|
218
221
|
} else {
|
219
222
|
var _this$props$onGesture3, _this$props4;
|
220
|
-
(_this$props$onGesture3 = (_this$props4 = this.props).onGestureHandlerStateChange) === null || _this$props$onGesture3 === void 0
|
223
|
+
(_this$props$onGesture3 = (_this$props4 = this.props).onGestureHandlerStateChange) === null || _this$props$onGesture3 === void 0 ? void 0 : _this$props$onGesture3.call(_this$props4, event);
|
221
224
|
}
|
222
225
|
};
|
223
226
|
refHandler = node => {
|
@@ -237,13 +240,13 @@ function createHandler({
|
|
237
240
|
};
|
238
241
|
createGestureHandler = newConfig => {
|
239
242
|
this.config = newConfig;
|
240
|
-
_RNGestureHandlerModule.
|
243
|
+
_RNGestureHandlerModule.default.createGestureHandler(name, this.handlerTag, newConfig);
|
241
244
|
};
|
242
245
|
attachGestureHandler = newViewTag => {
|
243
246
|
this.viewTag = newViewTag;
|
244
247
|
if (_reactNative.Platform.OS === 'web') {
|
245
248
|
// typecast due to dynamic resolution, attachGestureHandler should have web version signature in this branch
|
246
|
-
_RNGestureHandlerModule.
|
249
|
+
_RNGestureHandlerModule.default.attachGestureHandler(this.handlerTag, newViewTag, _ActionType.ActionType.JS_FUNCTION_OLD_API,
|
247
250
|
// ignored on web
|
248
251
|
this.propsRef);
|
249
252
|
} else {
|
@@ -263,14 +266,14 @@ function createHandler({
|
|
263
266
|
return _ActionType.ActionType.JS_FUNCTION_OLD_API;
|
264
267
|
}
|
265
268
|
})();
|
266
|
-
_RNGestureHandlerModule.
|
269
|
+
_RNGestureHandlerModule.default.attachGestureHandler(this.handlerTag, newViewTag, actionType);
|
267
270
|
}
|
268
|
-
(0,
|
271
|
+
(0, _gestureHandlerCommon.scheduleFlushOperations)();
|
269
272
|
};
|
270
273
|
updateGestureHandler = newConfig => {
|
271
274
|
this.config = newConfig;
|
272
|
-
_RNGestureHandlerModule.
|
273
|
-
(0,
|
275
|
+
_RNGestureHandlerModule.default.updateGestureHandler(this.handlerTag, newConfig);
|
276
|
+
(0, _gestureHandlerCommon.scheduleFlushOperations)();
|
274
277
|
};
|
275
278
|
update(remainingTries) {
|
276
279
|
if (!this.isMountedRef.current) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_isEqual","_interopRequireDefault","_RNGestureHandlerModule","_State","_handlersRegistry","_gestureHandlerCommon","_gestureHandlerCommon2","_utils","_ActionType","_PressabilityDebugView","_GestureHandlerRootViewContext","_UIManagerAny$getView","_UIManagerAny$getCons","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","UIManagerAny","UIManager","customGHEventsConfigFabricAndroid","topOnGestureHandlerEvent","registrationName","topOnGestureHandlerStateChange","customGHEventsConfig","onGestureHandlerEvent","onGestureHandlerStateChange","isFabric","Platform","OS","genericDirectEventTypes","UIManagerConstants","getViewManagerConfig","getConstants","setJSResponder","oldSetJSResponder","clearJSResponder","oldClearJSResponder","tag","blockNativeResponder","RNGestureHandlerModule","handleSetJSResponder","handleClearJSResponder","allowTouches","DEV_ON_ANDROID","__DEV__","DeviceEventEmitter","addListener","hasUnresolvedRefs","props","extract","refs","Array","isArray","current","some","stateToPropMappings","State","UNDETERMINED","undefined","BEGAN","FAILED","CANCELLED","ACTIVE","END","UNRESOLVED_REFS_RETRY_LIMIT","createHandler","name","allowedProps","config","transformProps","customNativeProps","Handler","Component","displayName","contextType","GestureHandlerRootViewContext","constructor","handlerTag","getNextHandlerTag","propsRef","createRef","isMountedRef","state","id","handlerIDToTag","Error","componentDidMount","inspectorToggleListener","setState","_","update","queueMicrotask","createGestureHandler","filterConfig","attachGestureHandler","findNodeHandle","viewNode","componentDidUpdate","viewTag","componentWillUnmount","_this$inspectorToggle","remove","dropGestureHandler","scheduleFlushOperations","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","ActionType","JS_FUNCTION_OLD_API","registerOldGestureHandler","onGestureStateChange","actionType","_this$props5","_this$props6","_this$props7","REANIMATED_WORKLET","NATIVE_ANIMATED_EVENT","updateGestureHandler","remainingTries","deepEqual","setNativeProps","updates","mergedProps","render","context","isJestEnv","gestureEventHandler","gestureStateEventHandler","events","tagMessage","grandChildren","type","toArray","push","createElement","PressabilityDebugView","key","color","hitSlop","cloneElement","collapsable","handlerType","testID"],"sourceRoot":"..\\..\\..\\src","sources":["handlers/createHandler.tsx"],"mappings":";;;;;;AAEA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,QAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,uBAAA,GAAAJ,OAAA;AAEA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,iBAAA,GAAAN,OAAA;AAMA,IAAAO,qBAAA,GAAAP,OAAA;AAQA,IAAAQ,sBAAA,GAAAR,OAAA;AAEA,IAAAS,MAAA,GAAAT,OAAA;AACA,IAAAU,WAAA,GAAAV,OAAA;AACA,IAAAW,sBAAA,GAAAX,OAAA;AACA,IAAAY,8BAAA,GAAAT,sBAAA,CAAAH,OAAA;AAA2G,IAAAa,qBAAA,EAAAC,qBAAA,EAjC3G;AASA;AAEkE;AAiBS;AAAA,SAAAX,uBAAAY,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAApB,wBAAAoB,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAH,UAAA,SAAAG,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAF,OAAA,EAAAE,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAJ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AACG,IAAI,eAChBhL,KAAA,CAAAiL,aAAA,CAACpK,sBAAA,CAAAqK,qBAAqB;UACpBC,GAAG,EAAC,uBAAuB;UAC3BC,KAAK,EAAC,mBAAmB;UACzBC,OAAO,EAAEtC,KAAK,CAACzE,KAAK,CAAC+G;QAAQ,CAC9B,CACH,CAAC;MACH;MAEA,oBAAOrL,KAAK,CAACsL,YAAY,CACvBvC,KAAK,EACL;QACEI,GAAG,EAAE,IAAI,CAACN,UAAU;QACpB0C,WAAW,EAAE,KAAK;QAClB,IAAI,IAAAf,gBAAS,EAAC,CAAC,GACX;UACEgB,WAAW,EAAEhG,IAAI;UACjBW,UAAU,EAAE,IAAI,CAACA;QACnB,CAAC,GACD,CAAC,CAAC,CAAC;QACPsF,MAAM,EAAE,IAAI,CAACnH,KAAK,CAACmH,MAAM,IAAI1C,KAAK,CAACzE,KAAK,CAACmH,MAAM;QAC/C,GAAGd;MACL,CAAC,EACDE,aACF,CAAC;IACH;EACF;EACA,OAAOhF,OAAO;AAChB"}
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_isEqual","_interopRequireDefault","_RNGestureHandlerModule","_State","_handlersRegistry","_gestureHandlerCommon","_utils","_ActionType","_PressabilityDebugView","_GestureHandlerRootViewContext","_UIManagerAny$getView","_UIManagerAny$getCons","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","UIManagerAny","UIManager","customGHEventsConfigFabricAndroid","topOnGestureHandlerEvent","registrationName","topOnGestureHandlerStateChange","customGHEventsConfig","onGestureHandlerEvent","onGestureHandlerStateChange","isFabric","Platform","OS","genericDirectEventTypes","UIManagerConstants","getViewManagerConfig","getConstants","setJSResponder","oldSetJSResponder","clearJSResponder","oldClearJSResponder","tag","blockNativeResponder","RNGestureHandlerModule","handleSetJSResponder","handleClearJSResponder","allowTouches","DEV_ON_ANDROID","__DEV__","DeviceEventEmitter","addListener","hasUnresolvedRefs","props","extract","refs","Array","isArray","current","some","r","stateToPropMappings","State","UNDETERMINED","undefined","BEGAN","FAILED","CANCELLED","ACTIVE","END","UNRESOLVED_REFS_RETRY_LIMIT","createHandler","_ref","name","allowedProps","config","transformProps","customNativeProps","Handler","Component","displayName","contextType","GestureHandlerRootViewContext","constructor","handlerTag","getNextHandlerTag","propsRef","createRef","isMountedRef","state","id","handlerIDToTag","Error","componentDidMount","inspectorToggleListener","setState","_","update","queueMicrotask","createGestureHandler","filterConfig","attachGestureHandler","findNodeHandle","viewNode","componentDidUpdate","viewTag","componentWillUnmount","_this$inspectorToggle","remove","dropGestureHandler","scheduleFlushOperations","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","ActionType","JS_FUNCTION_OLD_API","registerOldGestureHandler","onGestureStateChange","actionType","_this$props5","_this$props6","_this$props7","REANIMATED_WORKLET","NATIVE_ANIMATED_EVENT","updateGestureHandler","remainingTries","deepEqual","setNativeProps","updates","mergedProps","render","context","isJestEnv","gestureEventHandler","gestureStateEventHandler","events","e","tagMessage","grandChildren","type","toArray","push","createElement","PressabilityDebugView","color","hitSlop","cloneElement","collapsable","handlerType","testID"],"sourceRoot":"../../../src","sources":["handlers/createHandler.tsx"],"mappings":";;;;;;AAEA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,QAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,uBAAA,GAAAD,sBAAA,CAAAH,OAAA;AAEA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,iBAAA,GAAAN,OAAA;AAMA,IAAAO,qBAAA,GAAAP,OAAA;A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,GACD,CAAC,CAAC,CAAC;QACPsF,MAAM,EAAE,IAAI,CAACrH,KAAK,CAACqH,MAAM,IAAI1C,KAAK,CAAC3E,KAAK,CAACqH,MAAM;QAC/C,GAAGd;MACL,CAAC,EACDG,aACF,CAAC;IACH;EACF;EACA,OAAOjF,OAAO;AAChB"}
|
package/lib/commonjs/index.js
CHANGED
@@ -3,6 +3,18 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
+
Object.defineProperty(exports, "DrawerLayoutAndroid", {
|
7
|
+
enumerable: true,
|
8
|
+
get: function () {
|
9
|
+
return _GestureComponents.DrawerLayoutAndroid;
|
10
|
+
}
|
11
|
+
});
|
12
|
+
Object.defineProperty(exports, "FlatList", {
|
13
|
+
enumerable: true,
|
14
|
+
get: function () {
|
15
|
+
return _GestureComponents.FlatList;
|
16
|
+
}
|
17
|
+
});
|
6
18
|
Object.defineProperty(exports, "Gesture", {
|
7
19
|
enumerable: true,
|
8
20
|
get: function () {
|
@@ -27,18 +39,42 @@ Object.defineProperty(exports, "PanGestureHandler", {
|
|
27
39
|
return _PanGestureHandler.PanGestureHandler;
|
28
40
|
}
|
29
41
|
});
|
42
|
+
Object.defineProperty(exports, "RefreshControl", {
|
43
|
+
enumerable: true,
|
44
|
+
get: function () {
|
45
|
+
return _GestureComponents.RefreshControl;
|
46
|
+
}
|
47
|
+
});
|
48
|
+
Object.defineProperty(exports, "ScrollView", {
|
49
|
+
enumerable: true,
|
50
|
+
get: function () {
|
51
|
+
return _GestureComponents.ScrollView;
|
52
|
+
}
|
53
|
+
});
|
30
54
|
Object.defineProperty(exports, "State", {
|
31
55
|
enumerable: true,
|
32
56
|
get: function () {
|
33
57
|
return _State.State;
|
34
58
|
}
|
35
59
|
});
|
60
|
+
Object.defineProperty(exports, "Switch", {
|
61
|
+
enumerable: true,
|
62
|
+
get: function () {
|
63
|
+
return _GestureComponents.Switch;
|
64
|
+
}
|
65
|
+
});
|
36
66
|
Object.defineProperty(exports, "TapGestureHandler", {
|
37
67
|
enumerable: true,
|
38
68
|
get: function () {
|
39
69
|
return _TapGestureHandler.TapGestureHandler;
|
40
70
|
}
|
41
71
|
});
|
72
|
+
Object.defineProperty(exports, "TextInput", {
|
73
|
+
enumerable: true,
|
74
|
+
get: function () {
|
75
|
+
return _GestureComponents.TextInput;
|
76
|
+
}
|
77
|
+
});
|
42
78
|
Object.defineProperty(exports, "TouchableOpacity", {
|
43
79
|
enumerable: true,
|
44
80
|
get: function () {
|
@@ -51,14 +87,15 @@ Object.defineProperty(exports, "TouchableWithoutFeedback", {
|
|
51
87
|
return _touchables.TouchableWithoutFeedback;
|
52
88
|
}
|
53
89
|
});
|
54
|
-
var _init = require("
|
90
|
+
var _init = require("react-native-gesture-handler/src/init");
|
55
91
|
var _State = require("react-native-gesture-handler/src/State");
|
56
92
|
var _GestureHandlerRootView = _interopRequireDefault(require("./components/GestureHandlerRootView"));
|
57
|
-
var _TapGestureHandler = require("
|
58
|
-
var _PanGestureHandler = require("
|
59
|
-
var _GestureDetector = require("
|
93
|
+
var _TapGestureHandler = require("react-native-gesture-handler/src/handlers/TapGestureHandler");
|
94
|
+
var _PanGestureHandler = require("react-native-gesture-handler/src/handlers/PanGestureHandler");
|
95
|
+
var _GestureDetector = require("react-native-gesture-handler/src/handlers/gestures/GestureDetector");
|
60
96
|
var _gestureObjects = require("react-native-gesture-handler/src/handlers/gestures/gestureObjects");
|
61
|
-
var _touchables = require("
|
97
|
+
var _touchables = require("react-native-gesture-handler/src/components/touchables");
|
98
|
+
var _GestureComponents = require("react-native-gesture-handler/src/components/GestureComponents");
|
62
99
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
63
100
|
global.isFormsStackingContext = () => true; // TODO: add using JSI
|
64
101
|
|
@@ -80,7 +117,6 @@ global.isFormsStackingContext = () => true; // TODO: add using JSI
|
|
80
117
|
// GestureUpdateEvent,
|
81
118
|
// GestureStateChangeEvent,
|
82
119
|
// } from './handlers/gestureHandlerCommon';
|
83
|
-
|
84
120
|
// export type {
|
85
121
|
// TapGestureHandlerEventPayload,
|
86
122
|
// TapGestureHandlerProps,
|
@@ -112,10 +148,8 @@ global.isFormsStackingContext = () => true; // TODO: add using JSI
|
|
112
148
|
// FlingGestureHandlerEventPayload,
|
113
149
|
// FlingGestureHandlerProps,
|
114
150
|
// } from './handlers/FlingGestureHandler';
|
115
|
-
|
116
151
|
// export { ForceTouchGestureHandler } from './handlers/ForceTouchGestureHandler';
|
117
152
|
// export { LongPressGestureHandler } from './handlers/LongPressGestureHandler';
|
118
|
-
|
119
153
|
// export { PinchGestureHandler } from './handlers/PinchGestureHandler';
|
120
154
|
// export { RotationGestureHandler } from './handlers/RotationGestureHandler';
|
121
155
|
// export { FlingGestureHandler } from './handlers/FlingGestureHandler';
|
@@ -124,7 +158,6 @@ global.isFormsStackingContext = () => true; // TODO: add using JSI
|
|
124
158
|
// NativeViewGestureHandlerPayload,
|
125
159
|
// NativeViewGestureHandlerProps,
|
126
160
|
// } from './handlers/NativeViewGestureHandler';
|
127
|
-
|
128
161
|
// export type { TapGestureType as TapGesture } from './handlers/gestures/tapGesture';
|
129
162
|
// export type { PanGestureType as PanGesture } from './handlers/gestures/panGesture';
|
130
163
|
// export type { FlingGestureType as FlingGesture } from './handlers/gestures/flingGesture';
|
@@ -155,15 +188,6 @@ global.isFormsStackingContext = () => true; // TODO: add using JSI
|
|
155
188
|
// BorderlessButton,
|
156
189
|
// PureNativeButton,
|
157
190
|
// } from './components/GestureButtons';
|
158
|
-
|
159
|
-
// export {
|
160
|
-
// ScrollView,
|
161
|
-
// Switch,
|
162
|
-
// TextInput,
|
163
|
-
// DrawerLayoutAndroid,
|
164
|
-
// FlatList,
|
165
|
-
// RefreshControl,
|
166
|
-
// } from './components/GestureComponents';
|
167
191
|
// export type {
|
168
192
|
// //events
|
169
193
|
// GestureHandlerGestureEvent,
|
@@ -218,6 +242,5 @@ global.isFormsStackingContext = () => true; // TODO: add using JSI
|
|
218
242
|
// enableExperimentalWebImplementation,
|
219
243
|
// enableLegacyWebImplementation,
|
220
244
|
// } from './EnableNewWebImplementation';
|
221
|
-
|
222
245
|
(0, _init.initialize)();
|
223
246
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_init","require","_State","_GestureHandlerRootView","_interopRequireDefault","_TapGestureHandler","_PanGestureHandler","_GestureDetector","_gestureObjects","_touchables","obj","__esModule","default","global","isFormsStackingContext","initialize"],"sourceRoot":"
|
1
|
+
{"version":3,"names":["_init","require","_State","_GestureHandlerRootView","_interopRequireDefault","_TapGestureHandler","_PanGestureHandler","_GestureDetector","_gestureObjects","_touchables","_GestureComponents","obj","__esModule","default","global","isFormsStackingContext","initialize"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAAA,KAAA,GAAAC,OAAA;AAGA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,uBAAA,GAAAC,sBAAA,CAAAH,OAAA;AA+CA,IAAAI,kBAAA,GAAAJ,OAAA;AAGA,IAAAK,kBAAA,GAAAL,OAAA;AASA,IAAAM,gBAAA,GAAAN,OAAA;AACA,IAAAO,eAAA,GAAAP,OAAA;AA+BA,IAAAQ,WAAA,GAAAR,OAAA;AAMA,IAAAS,kBAAA,GAAAT,OAAA;AAOuE,SAAAG,uBAAAO,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AA/GvEG,MAAM,CAACC,sBAAsB,GAAG,MAAM,IAAI,CAAC,CAAC;;AAI5C;;AAEA;;AAEA;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;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;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;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;AAEA,IAAAC,gBAAU,EAAC,CAAC"}
|
@@ -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 => {
|