@react-native-oh-tpl/react-native-gesture-handler 2.14.8-rc.1 → 2.14.14
Sign up to get free protection for your applications and to get access to all the features.
- package/DrawerLayout/index.ts +2 -2
- package/Swipeable/index.ts +2 -2
- package/harmony/gesture_handler/BuildProfile.ets +17 -0
- package/harmony/gesture_handler/build-profile.json5 +19 -0
- package/harmony/gesture_handler/hvigorfile.ts +2 -0
- package/harmony/gesture_handler/index.ets +2 -0
- package/harmony/gesture_handler/oh-package-lock.json5 +18 -0
- package/harmony/gesture_handler/oh-package.json5 +12 -0
- package/harmony/gesture_handler/src/main/cpp/CMakeLists.txt +8 -0
- package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.h +12 -0
- package/harmony/gesture_handler/src/main/cpp/RnohReactNativeHarmonyGestureHandlerPackage.cpp +123 -0
- package/harmony/gesture_handler/src/main/cpp/RnohReactNativeHarmonyGestureHandlerPackage.h +15 -0
- package/harmony/gesture_handler/src/main/cpp/componentInstances/RNGestureHandlerButtonComponentInstance.h +27 -0
- package/harmony/gesture_handler/src/main/cpp/componentInstances/RNGestureHandlerRootViewComponentInstance.h +245 -0
- package/harmony/gesture_handler/src/main/ets/RNOHPackage.ets +17 -0
- package/harmony/gesture_handler/src/main/ets/core/CircularBuffer.ts +42 -0
- package/harmony/gesture_handler/src/main/ets/core/GestureHandler.ts +739 -0
- package/harmony/gesture_handler/src/main/ets/core/GestureHandlerOrchestrator.ts +344 -0
- package/harmony/gesture_handler/src/main/ets/core/GestureHandlerRegistry.ts +63 -0
- package/harmony/gesture_handler/src/main/ets/core/IncomingEvent.ts +78 -0
- package/harmony/gesture_handler/src/main/ets/core/InteractionManager.ts +144 -0
- package/harmony/gesture_handler/src/main/ets/core/LeastSquareSolver.ts +182 -0
- package/harmony/gesture_handler/src/main/ets/core/Multiset.ts +26 -0
- package/harmony/gesture_handler/src/main/ets/core/OutgoingEvent.ts +34 -0
- package/harmony/gesture_handler/src/main/ets/core/OutgoingEventDispatcher.ts +12 -0
- package/harmony/gesture_handler/src/main/ets/core/PointerTracker.ts +239 -0
- package/harmony/gesture_handler/src/main/ets/core/RNGHError.ts +5 -0
- package/harmony/gesture_handler/src/main/ets/core/RNGHLogger.ts +16 -0
- package/harmony/gesture_handler/src/main/ets/core/State.ts +47 -0
- package/harmony/gesture_handler/src/main/ets/core/Vector2D.ts +80 -0
- package/harmony/gesture_handler/src/main/ets/core/VelocityTracker.ts +106 -0
- package/harmony/gesture_handler/src/main/ets/core/View.ts +21 -0
- package/harmony/gesture_handler/src/main/ets/core/ViewRegistry.ts +7 -0
- package/harmony/gesture_handler/src/main/ets/core/index.ts +15 -0
- package/harmony/gesture_handler/src/main/ets/detectors/ScaleGestureDetector.ts +169 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/FlingGestureHandler.ts +219 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/GestureHandlerFactory.ts +67 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/LongPressGestureHandler.ts +139 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/ManualGestureHandler.ts +50 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/NativeViewGestureHandler.ts +124 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/PanGestureHandler.ts +361 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/PinchGestureHandler.ts +174 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/RotationGestureHandler.ts +172 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/TapGestureHandler.ts +216 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/detectors/RotationGestureDetector.ts +167 -0
- package/harmony/gesture_handler/src/main/ets/gesture-handlers/index.ts +1 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/GestureHandlerPackage.ts +25 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/Logger.ts +107 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/OutgoingEventDispatchers.ts +94 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/RNGHRootViewController.ts +182 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/RNGHView.ts +62 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/RNGHViewController.ts +262 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/RNGHViewRegistry.ts +19 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/RNGestureHandlerModule.ts +267 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/RNOHGestureResponder.ts +15 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/RNOHScrollLocker.ts +25 -0
- package/harmony/gesture_handler/src/main/ets/rnoh/types.ts +25 -0
- package/harmony/gesture_handler/src/main/module.json5 +9 -0
- package/harmony/gesture_handler/src/main/resources/base/element/color.json +8 -0
- package/harmony/gesture_handler/src/main/resources/base/element/string.json +16 -0
- package/harmony/gesture_handler/src/main/resources/base/media/icon.png +0 -0
- package/harmony/gesture_handler/src/main/resources/base/profile/main_pages.json +5 -0
- package/harmony/gesture_handler/src/main/resources/en_US/element/string.json +16 -0
- package/harmony/gesture_handler/src/main/resources/zh_CN/element/string.json +16 -0
- package/harmony/gesture_handler/ts.ts +2 -0
- package/harmony/gesture_handler.har +0 -0
- package/lib/commonjs/RNGestureHandlerModule.js +3 -2
- package/lib/commonjs/RNGestureHandlerModule.js.map +1 -1
- package/lib/commonjs/components/GestureHandlerRootView.js +3 -3
- package/lib/commonjs/components/GestureHandlerRootView.js.map +1 -1
- package/lib/commonjs/handlers/createHandler.js +18 -15
- package/lib/commonjs/handlers/createHandler.js.map +1 -1
- package/lib/commonjs/index.js +36 -8
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/specs/NativeRNGestureHandlerModule.js +2 -1
- package/lib/commonjs/specs/NativeRNGestureHandlerModule.js.map +1 -1
- package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js +3 -2
- package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js +3 -2
- package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -1
- package/lib/module/RNGestureHandlerModule.js.map +1 -1
- package/lib/module/components/GestureHandlerRootView.js.map +1 -1
- package/lib/module/handlers/createHandler.js +15 -12
- package/lib/module/handlers/createHandler.js.map +1 -1
- package/lib/module/index.js +5 -7
- package/lib/module/index.js.map +1 -1
- package/lib/module/specs/NativeRNGestureHandlerModule.js.map +1 -1
- package/lib/module/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -1
- package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -1
- package/lib/typescript/RNGestureHandlerModule.d.ts +2 -2
- package/lib/typescript/components/GestureHandlerRootView.d.ts +6 -6
- package/lib/typescript/handlers/createHandler.d.ts +11 -11
- package/lib/typescript/index.d.ts +47 -42
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts +14 -14
- package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts +14 -14
- package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts +6 -6
- package/package.json +78 -70
- package/src/RNGestureHandlerModule.ts +4 -4
- package/src/components/GestureHandlerRootView.tsx +23 -23
- package/src/handlers/createHandler.tsx +534 -534
- package/src/index.ts +172 -172
- package/src/specs/NativeRNGestureHandlerModule.ts +26 -26
- package/src/specs/RNGestureHandlerButtonNativeComponent.ts +18 -18
- package/src/specs/RNGestureHandlerRootViewNativeComponent.ts +6 -6
Binary file
|
@@ -5,7 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.default = void 0;
|
7
7
|
var _NativeRNGestureHandlerModule = _interopRequireDefault(require("../src/specs/NativeRNGestureHandlerModule"));
|
8
|
-
function _interopRequireDefault(
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
9
9
|
const RNGestureHandlerModule = _NativeRNGestureHandlerModule.default;
|
10
|
-
var _default =
|
10
|
+
var _default = RNGestureHandlerModule;
|
11
|
+
exports.default = _default;
|
11
12
|
//# sourceMappingURL=RNGestureHandlerModule.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_NativeRNGestureHandlerModule","_interopRequireDefault","require","
|
1
|
+
{"version":3,"names":["_NativeRNGestureHandlerModule","_interopRequireDefault","require","obj","__esModule","default","RNGestureHandlerModule","NativeRNGestureHandlerModule","_default","exports"],"sourceRoot":"../../src","sources":["RNGestureHandlerModule.ts"],"mappings":";;;;;;AAAA,IAAAA,6BAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAqF,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAErF,MAAMG,sBAAsB,GAAGC,qCAA4B;AAAC,IAAAC,QAAA,GAE7CF,sBAAsB;AAAAG,OAAA,CAAAJ,OAAA,GAAAG,QAAA"}
|
@@ -8,9 +8,9 @@ var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _init = require("react-native-gesture-handler/src/init");
|
9
9
|
var _GestureHandlerRootViewContext = _interopRequireDefault(require("react-native-gesture-handler/src/GestureHandlerRootViewContext"));
|
10
10
|
var _RNGestureHandlerRootViewNativeComponent = _interopRequireDefault(require("../specs/RNGestureHandlerRootViewNativeComponent"));
|
11
|
-
function _interopRequireDefault(
|
12
|
-
function _getRequireWildcardCache(
|
13
|
-
function _interopRequireWildcard(
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
12
|
+
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); }
|
13
|
+
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; }
|
14
14
|
function GestureHandlerRootView(props) {
|
15
15
|
// try initialize fabric on the first render, at this point we can
|
16
16
|
// reliably check if fabric is enabled (the function contains a flag
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_init","_GestureHandlerRootViewContext","_interopRequireDefault","_RNGestureHandlerRootViewNativeComponent","
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_init","_GestureHandlerRootViewContext","_interopRequireDefault","_RNGestureHandlerRootViewNativeComponent","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","GestureHandlerRootView","props","maybeInitializeFabric","createElement","Provider","value"],"sourceRoot":"../../../src","sources":["components/GestureHandlerRootView.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAGA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,8BAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,wCAAA,GAAAD,sBAAA,CAAAH,OAAA;AAAuG,SAAAG,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,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AAK,OAA6B,CAACwB,QAAQ;IAACC,KAAK;EAAA,gBAC3ClC,KAAA,CAAAgC,aAAA,CAAC1B,wCAAA,CAAAG,OAAuC,EAAKqB,KAAQ,CACf,CAAC;AAE7C"}
|
@@ -18,9 +18,9 @@ var _GestureHandlerRootViewContext = _interopRequireDefault(require("react-nativ
|
|
18
18
|
var _UIManagerAny$getView, _UIManagerAny$getCons; // RNGH: patching the import to RNGestureHandlerModule
|
19
19
|
// @ts-ignore - it isn't typed by TS & don't have definitelyTyped types
|
20
20
|
// RNGH: patch
|
21
|
-
function _interopRequireDefault(
|
22
|
-
function _getRequireWildcardCache(
|
23
|
-
function _interopRequireWildcard(
|
21
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
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; }
|
24
24
|
const UIManagerAny = _reactNative.UIManager;
|
25
25
|
const customGHEventsConfigFabricAndroid = {
|
26
26
|
topOnGestureHandlerEvent: {
|
@@ -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,16 +171,18 @@ 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
187
|
_RNGestureHandlerModule.default.dropGestureHandler(this.handlerTag);
|
185
188
|
(0, _gestureHandlerCommon.scheduleFlushOperations)();
|
@@ -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 => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_isEqual","_interopRequireDefault","_RNGestureHandlerModule","_State","_handlersRegistry","_gestureHandlerCommon","_utils","_ActionType","_PressabilityDebugView","_GestureHandlerRootViewContext","_UIManagerAny$getView","_UIManagerAny$getCons","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","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,GAAAD,sBAAA,CAAAH,OAAA;AAEA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,iBAAA,GAAAN,OAAA;AAMA,IAAAO,qBAAA,GAAAP,OAAA;AASA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAT,OAAA;AACA,IAAAU,sBAAA,GAAAV,OAAA;AACA,IAAAW,8BAAA,GAAAR,sBAAA,CAAAH,OAAA;AAA2G,IAAAY,qBAAA,EAAAC,qBAAA,EAhC3G;AASA;AAEgE;AAAA,SAAAV,uBAAAW,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAf,wBAAAe,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uB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AW,KAAK,MAAM,CAAC,EACpC;QACA8E,aAAa,GAAG1K,KAAK,CAAC6I,QAAQ,CAAC+B,OAAO,CAACF,aAAa,CAAC;QACrDA,aAAa,CAACG,IAAI,eAChB7K,KAAA,CAAA8K,aAAA,CAAClK,sBAAA,CAAAmK,qBAAqB;UACpBC,GAAG,EAAC,uBAAuB;UAC3BC,KAAK,EAAC,mBAAmB;UACzBC,OAAO,EAAEtC,KAAK,CAACzE,KAAK,CAAC+G;QAAQ,CAC9B,CACH,CAAC;MACH;MAEA,oBAAOlL,KAAK,CAACmL,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","ignoreList":[]}
|
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,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W,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,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
@@ -39,6 +39,12 @@ Object.defineProperty(exports, "FlatList", {
|
|
39
39
|
return _GestureComponents.FlatList;
|
40
40
|
}
|
41
41
|
});
|
42
|
+
Object.defineProperty(exports, "FlingGestureHandler", {
|
43
|
+
enumerable: true,
|
44
|
+
get: function () {
|
45
|
+
return _FlingGestureHandler.FlingGestureHandler;
|
46
|
+
}
|
47
|
+
});
|
42
48
|
Object.defineProperty(exports, "Gesture", {
|
43
49
|
enumerable: true,
|
44
50
|
get: function () {
|
@@ -57,12 +63,30 @@ Object.defineProperty(exports, "GestureHandlerRootView", {
|
|
57
63
|
return _GestureHandlerRootView.default;
|
58
64
|
}
|
59
65
|
});
|
66
|
+
Object.defineProperty(exports, "LongPressGestureHandler", {
|
67
|
+
enumerable: true,
|
68
|
+
get: function () {
|
69
|
+
return _LongPressGestureHandler.LongPressGestureHandler;
|
70
|
+
}
|
71
|
+
});
|
72
|
+
Object.defineProperty(exports, "NativeViewGestureHandler", {
|
73
|
+
enumerable: true,
|
74
|
+
get: function () {
|
75
|
+
return _NativeViewGestureHandler.NativeViewGestureHandler;
|
76
|
+
}
|
77
|
+
});
|
60
78
|
Object.defineProperty(exports, "PanGestureHandler", {
|
61
79
|
enumerable: true,
|
62
80
|
get: function () {
|
63
81
|
return _PanGestureHandler.PanGestureHandler;
|
64
82
|
}
|
65
83
|
});
|
84
|
+
Object.defineProperty(exports, "PinchGestureHandler", {
|
85
|
+
enumerable: true,
|
86
|
+
get: function () {
|
87
|
+
return _PinchGestureHandler.PinchGestureHandler;
|
88
|
+
}
|
89
|
+
});
|
66
90
|
Object.defineProperty(exports, "PureNativeButton", {
|
67
91
|
enumerable: true,
|
68
92
|
get: function () {
|
@@ -87,6 +111,12 @@ Object.defineProperty(exports, "RefreshControl", {
|
|
87
111
|
return _GestureComponents.RefreshControl;
|
88
112
|
}
|
89
113
|
});
|
114
|
+
Object.defineProperty(exports, "RotationGestureHandler", {
|
115
|
+
enumerable: true,
|
116
|
+
get: function () {
|
117
|
+
return _RotationGestureHandler.RotationGestureHandler;
|
118
|
+
}
|
119
|
+
});
|
90
120
|
Object.defineProperty(exports, "ScrollView", {
|
91
121
|
enumerable: true,
|
92
122
|
get: function () {
|
@@ -177,27 +207,25 @@ var _State = require("react-native-gesture-handler/src/State");
|
|
177
207
|
var _gestureHandlerRootHOC = _interopRequireDefault(require("react-native-gesture-handler/src/components/gestureHandlerRootHOC"));
|
178
208
|
var _GestureHandlerRootView = _interopRequireDefault(require("./components/GestureHandlerRootView"));
|
179
209
|
var _TapGestureHandler = require("react-native-gesture-handler/src/handlers/TapGestureHandler");
|
210
|
+
var _LongPressGestureHandler = require("react-native-gesture-handler/src/handlers/LongPressGestureHandler");
|
180
211
|
var _PanGestureHandler = require("react-native-gesture-handler/src/handlers/PanGestureHandler");
|
212
|
+
var _PinchGestureHandler = require("react-native-gesture-handler/src/handlers/PinchGestureHandler");
|
213
|
+
var _RotationGestureHandler = require("react-native-gesture-handler/src/handlers/RotationGestureHandler");
|
214
|
+
var _FlingGestureHandler = require("react-native-gesture-handler/src/handlers/FlingGestureHandler");
|
181
215
|
var _createNativeWrapper = _interopRequireDefault(require("react-native-gesture-handler/src/handlers/createNativeWrapper"));
|
182
216
|
var _GestureDetector = require("react-native-gesture-handler/src/handlers/gestures/GestureDetector");
|
183
217
|
var _gestureObjects = require("react-native-gesture-handler/src/handlers/gestures/gestureObjects");
|
218
|
+
var _NativeViewGestureHandler = require("react-native-gesture-handler/src/handlers/NativeViewGestureHandler");
|
184
219
|
var _GestureButtons = require("react-native-gesture-handler/src/components/GestureButtons");
|
185
220
|
var _touchables = require("react-native-gesture-handler/src/components/touchables");
|
186
221
|
var _GestureComponents = require("react-native-gesture-handler/src/components/GestureComponents");
|
187
222
|
var _Swipeable = _interopRequireDefault(require("react-native-gesture-handler/src/components/Swipeable"));
|
188
223
|
var _DrawerLayout = _interopRequireDefault(require("react-native-gesture-handler/src/components/DrawerLayout"));
|
189
224
|
var _EnableNewWebImplementation = require("react-native-gesture-handler/src/EnableNewWebImplementation");
|
190
|
-
function _interopRequireDefault(
|
225
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
191
226
|
global.isFormsStackingContext = () => true; // TODO: add using JSI
|
192
227
|
|
193
228
|
// export { ForceTouchGestureHandler } from './handlers/ForceTouchGestureHandler';
|
194
|
-
// export { LongPressGestureHandler } from './handlers/LongPressGestureHandler';
|
195
|
-
|
196
|
-
// export { PinchGestureHandler } from './handlers/PinchGestureHandler';
|
197
|
-
// export { RotationGestureHandler } from './handlers/RotationGestureHandler';
|
198
|
-
// export { FlingGestureHandler } from './handlers/FlingGestureHandler';
|
199
|
-
|
200
|
-
// export { NativeViewGestureHandler } from './handlers/NativeViewGestureHandler';
|
201
229
|
|
202
230
|
(0, _init.initialize)();
|
203
231
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_init","require","_Directions","_State","_gestureHandlerRootHOC","_interopRequireDefault","_GestureHandlerRootView","_TapGestureHandler","_PanGestureHandler","_createNativeWrapper","_GestureDetector","_gestureObjects","_GestureButtons","_touchables","_GestureComponents","_Swipeable","_DrawerLayout","_EnableNewWebImplementation","
|
1
|
+
{"version":3,"names":["_init","require","_Directions","_State","_gestureHandlerRootHOC","_interopRequireDefault","_GestureHandlerRootView","_TapGestureHandler","_LongPressGestureHandler","_PanGestureHandler","_PinchGestureHandler","_RotationGestureHandler","_FlingGestureHandler","_createNativeWrapper","_GestureDetector","_gestureObjects","_NativeViewGestureHandler","_GestureButtons","_touchables","_GestureComponents","_Swipeable","_DrawerLayout","_EnableNewWebImplementation","obj","__esModule","default","global","isFormsStackingContext","initialize"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,uBAAA,GAAAD,sBAAA,CAAAJ,OAAA;AA+CA,IAAAM,kBAAA,GAAAN,OAAA;AAEA,IAAAO,wBAAA,GAAAP,OAAA;AACA,IAAAQ,kBAAA,GAAAR,OAAA;AACA,IAAAS,oBAAA,GAAAT,OAAA;AACA,IAAAU,uBAAA,GAAAV,OAAA;AACA,IAAAW,oBAAA,GAAAX,OAAA;AACA,IAAAY,oBAAA,GAAAR,sBAAA,CAAAJ,OAAA;AAKA,IAAAa,gBAAA,GAAAb,OAAA;AACA,IAAAc,eAAA,GAAAd,OAAA;AAiBA,IAAAe,yBAAA,GAAAf,OAAA;AAOA,IAAAgB,eAAA,GAAAhB,OAAA;AAOA,IAAAiB,WAAA,GAAAjB,OAAA;AAMA,IAAAkB,kBAAA,GAAAlB,OAAA;AA+CA,IAAAmB,UAAA,GAAAf,sBAAA,CAAAJ,OAAA;AASA,IAAAoB,aAAA,GAAAhB,sBAAA,CAAAJ,OAAA;AAEA,IAAAqB,2BAAA,GAAArB,OAAA;AAGqE,SAAAI,uBAAAkB,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AArKrEG,MAAM,CAACC,sBAAsB,GAAG,MAAM,IAAI,CAAC,CAAC;;AAuD5C;;AAgHA,IAAAC,gBAAU,EAAC,CAAC"}
|
@@ -5,5 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.default = void 0;
|
7
7
|
var _reactNative = require("react-native");
|
8
|
-
var _default =
|
8
|
+
var _default = _reactNative.TurboModuleRegistry.getEnforcing('RNGestureHandlerModule');
|
9
|
+
exports.default = _default;
|
9
10
|
//# sourceMappingURL=NativeRNGestureHandlerModule.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_default","
|
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"}
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.default = void 0;
|
7
7
|
var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
8
|
-
function _interopRequireDefault(
|
9
|
-
var _default =
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
9
|
+
var _default = (0, _codegenNativeComponent.default)('RNGestureHandlerButton');
|
10
|
+
exports.default = _default;
|
10
11
|
//# sourceMappingURL=RNGestureHandlerButtonNativeComponent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","
|
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"}
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.default = void 0;
|
7
7
|
var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
8
|
-
function _interopRequireDefault(
|
9
|
-
var _default =
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
9
|
+
var _default = (0, _codegenNativeComponent.default)('RNGestureHandlerRootView');
|
10
|
+
exports.default = _default;
|
10
11
|
//# sourceMappingURL=RNGestureHandlerRootViewNativeComponent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","
|
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 +1 @@
|
|
1
|
-
{"version":3,"names":["NativeRNGestureHandlerModule","RNGestureHandlerModule"],"sourceRoot":"
|
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 +1 @@
|
|
1
|
-
{"version":3,"names":["React","maybeInitializeFabric","GestureHandlerRootViewContext","RNGestureHandlerRootViewNativeComponent","GestureHandlerRootView","props","createElement","Provider","value"],"sourceRoot":"
|
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"}
|
@@ -112,13 +112,14 @@ const stateToPropMappings = {
|
|
112
112
|
const UNRESOLVED_REFS_RETRY_LIMIT = 1;
|
113
113
|
|
114
114
|
// TODO(TS) - make sure that BaseGestureHandlerProps doesn't need other generic parameter to work with custom properties.
|
115
|
-
export default function createHandler({
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
115
|
+
export default function createHandler(_ref) {
|
116
|
+
let {
|
117
|
+
name,
|
118
|
+
allowedProps = [],
|
119
|
+
config = {},
|
120
|
+
transformProps,
|
121
|
+
customNativeProps = []
|
122
|
+
} = _ref;
|
122
123
|
class Handler extends React.Component {
|
123
124
|
static displayName = name;
|
124
125
|
static contextType = GestureHandlerRootViewContext;
|
@@ -163,16 +164,18 @@ export default function createHandler({
|
|
163
164
|
this.createGestureHandler(filterConfig(transformProps ? transformProps(this.props) : this.props, [...allowedProps, ...customNativeProps], config));
|
164
165
|
this.attachGestureHandler(findNodeHandle(this.viewNode)); // TODO(TS) - check if this can be null
|
165
166
|
}
|
167
|
+
|
166
168
|
componentDidUpdate() {
|
167
169
|
const viewTag = findNodeHandle(this.viewNode);
|
168
170
|
if (this.viewTag !== viewTag) {
|
169
171
|
this.attachGestureHandler(viewTag); // TODO(TS) - check interaction between _viewTag & findNodeHandle
|
170
172
|
}
|
173
|
+
|
171
174
|
this.update(UNRESOLVED_REFS_RETRY_LIMIT);
|
172
175
|
}
|
173
176
|
componentWillUnmount() {
|
174
177
|
var _this$inspectorToggle;
|
175
|
-
(_this$inspectorToggle = this.inspectorToggleListener) === null || _this$inspectorToggle === void 0
|
178
|
+
(_this$inspectorToggle = this.inspectorToggleListener) === null || _this$inspectorToggle === void 0 ? void 0 : _this$inspectorToggle.remove();
|
176
179
|
this.isMountedRef.current = false;
|
177
180
|
RNGestureHandlerModule.dropGestureHandler(this.handlerTag);
|
178
181
|
scheduleFlushOperations();
|
@@ -187,11 +190,11 @@ export default function createHandler({
|
|
187
190
|
if (event.nativeEvent.handlerTag === this.handlerTag) {
|
188
191
|
if (typeof this.props.onGestureEvent === 'function') {
|
189
192
|
var _this$props$onGesture, _this$props;
|
190
|
-
(_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);
|
191
194
|
}
|
192
195
|
} else {
|
193
196
|
var _this$props$onGesture2, _this$props2;
|
194
|
-
(_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);
|
195
198
|
}
|
196
199
|
};
|
197
200
|
|
@@ -200,7 +203,7 @@ export default function createHandler({
|
|
200
203
|
if (event.nativeEvent.handlerTag === this.handlerTag) {
|
201
204
|
if (typeof this.props.onHandlerStateChange === 'function') {
|
202
205
|
var _this$props$onHandler, _this$props3;
|
203
|
-
(_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);
|
204
207
|
}
|
205
208
|
const state = event.nativeEvent.state;
|
206
209
|
const stateEventName = stateToPropMappings[state];
|
@@ -210,7 +213,7 @@ export default function createHandler({
|
|
210
213
|
}
|
211
214
|
} else {
|
212
215
|
var _this$props$onGesture3, _this$props4;
|
213
|
-
(_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);
|
214
217
|
}
|
215
218
|
};
|
216
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;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C,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","ignoreList":[]}
|
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,OAAOC,sBAAsB,MAAM,2BAA2B,CAAC,CAAC;;AAEhE,SAASC,KAAK,QAAQ,wCAAwC;AAC9D,SACEC,cAAc,EACdC,iBAAiB,EACjBC,yBAAyB,QACpB,4DAA4D;AAEnE,SAEEC,YAAY,EAGZC,cAAc,EACdC,uBAAuB,QAClB,gEAAgE;AAEvE,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,EAAE;IAAEC,gBAAgB,EAAE;EAAwB,CAAC;EACvEC,8BAA8B,EAAE;IAC9BD,gBAAgB,EAAE;EACpB;AACF,CAAC;AAED,MAAME,oBAAoB,GAAG;EAC3BC,qBAAqB,EAAE;IAAEH,gBAAgB,EAAE;EAAwB,CAAC;EACpEI,2BAA2B,EAAE;IAC3BJ,gBAAgB,EAAE;EACpB,CAAC;EAED;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,IAAIT,QAAQ,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AAI,KAAK,MAAM,IAC1BiD,KAAK,CAAC2B,IAAI,CAACrE,WAAW,KAAK,MAAM,CAAC,EACpC;QACAoE,aAAa,GAAG9I,KAAK,CAACqH,QAAQ,CAAC2B,OAAO,CAACF,aAAa,CAAC;QACrDA,aAAa,CAACG,IAAI,eAChBjJ,KAAA,CAAAkJ,aAAA,CAACjI,qBAAqB;UACpBkI,GAAG,EAAC,uBAAuB;UAC3BC,KAAK,EAAC,mBAAmB;UACzBC,OAAO,EAAEjC,KAAK,CAACpE,KAAK,CAACqG;QAAQ,CAC9B,CACH,CAAC;MACH;MAEA,oBAAOrJ,KAAK,CAACsJ,YAAY,CACvBlC,KAAK,EACL;QACEI,GAAG,EAAE,IAAI,CAACN,UAAU;QACpBqC,WAAW,EAAE,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
@@ -7,17 +7,15 @@ export { default as gestureHandlerRootHOC } from 'react-native-gesture-handler/s
|
|
7
7
|
export { default as GestureHandlerRootView } from './components/GestureHandlerRootView';
|
8
8
|
export { TapGestureHandler } from 'react-native-gesture-handler/src/handlers/TapGestureHandler';
|
9
9
|
// export { ForceTouchGestureHandler } from './handlers/ForceTouchGestureHandler';
|
10
|
-
|
10
|
+
export { LongPressGestureHandler } from 'react-native-gesture-handler/src/handlers/LongPressGestureHandler';
|
11
11
|
export { PanGestureHandler } from 'react-native-gesture-handler/src/handlers/PanGestureHandler';
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
export { PinchGestureHandler } from 'react-native-gesture-handler/src/handlers/PinchGestureHandler';
|
13
|
+
export { RotationGestureHandler } from 'react-native-gesture-handler/src/handlers/RotationGestureHandler';
|
14
|
+
export { FlingGestureHandler } from 'react-native-gesture-handler/src/handlers/FlingGestureHandler';
|
15
15
|
export { default as createNativeWrapper } from 'react-native-gesture-handler/src/handlers/createNativeWrapper';
|
16
16
|
export { GestureDetector } from 'react-native-gesture-handler/src/handlers/gestures/GestureDetector';
|
17
17
|
export { GestureObjects as Gesture } from 'react-native-gesture-handler/src/handlers/gestures/gestureObjects';
|
18
|
-
|
19
|
-
// export { NativeViewGestureHandler } from './handlers/NativeViewGestureHandler';
|
20
|
-
|
18
|
+
export { NativeViewGestureHandler } from 'react-native-gesture-handler/src/handlers/NativeViewGestureHandler';
|
21
19
|
export { RawButton, BaseButton, RectButton, BorderlessButton, PureNativeButton } from 'react-native-gesture-handler/src/components/GestureButtons';
|
22
20
|
export { TouchableHighlight, TouchableNativeFeedback, TouchableOpacity, TouchableWithoutFeedback } from 'react-native-gesture-handler/src/components/touchables';
|
23
21
|
export { ScrollView, Switch, TextInput, DrawerLayoutAndroid, FlatList, RefreshControl } from 'react-native-gesture-handler/src/components/GestureComponents';
|
package/lib/module/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["global","isFormsStackingContext","initialize","Directions","State","default","gestureHandlerRootHOC","GestureHandlerRootView","TapGestureHandler","PanGestureHandler","createNativeWrapper","GestureDetector","GestureObjects","Gesture","RawButton","BaseButton","RectButton","BorderlessButton","PureNativeButton","TouchableHighlight","TouchableNativeFeedback","TouchableOpacity","TouchableWithoutFeedback","ScrollView","Switch","TextInput","DrawerLayoutAndroid","FlatList","RefreshControl","Swipeable","DrawerLayout","enableExperimentalWebImplementation","enableLegacyWebImplementation"],"sourceRoot":"
|
1
|
+
{"version":3,"names":["global","isFormsStackingContext","initialize","Directions","State","default","gestureHandlerRootHOC","GestureHandlerRootView","TapGestureHandler","LongPressGestureHandler","PanGestureHandler","PinchGestureHandler","RotationGestureHandler","FlingGestureHandler","createNativeWrapper","GestureDetector","GestureObjects","Gesture","NativeViewGestureHandler","RawButton","BaseButton","RectButton","BorderlessButton","PureNativeButton","TouchableHighlight","TouchableNativeFeedback","TouchableOpacity","TouchableWithoutFeedback","ScrollView","Switch","TextInput","DrawerLayoutAndroid","FlatList","RefreshControl","Swipeable","DrawerLayout","enableExperimentalWebImplementation","enableLegacyWebImplementation"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"AAIAA,MAAM,CAACC,sBAAsB,GAAG,MAAM,IAAI,CAAC,CAAC;;AAE5C,SAASC,UAAU,QAAQ,uCAAuC;AAElE,SAASC,UAAU,QAAQ,6CAA6C;AACxE,SAASC,KAAK,QAAQ,wCAAwC;AAC9D,SAASC,OAAO,IAAIC,qBAAqB,QAAQ,mEAAmE;AACpH,SAASD,OAAO,IAAIE,sBAAsB,QAAQ,qCAAqC;AA+CvF,SAASC,iBAAiB,QAAQ,6DAA6D;AAC/F;AACA,SAASC,uBAAuB,QAAQ,mEAAmE;AAC3G,SAASC,iBAAiB,QAAQ,6DAA6D;AAC/F,SAASC,mBAAmB,QAAQ,+DAA+D;AACnG,SAASC,sBAAsB,QAAQ,kEAAkE;AACzG,SAASC,mBAAmB,QAAQ,+DAA+D;AACnG,SAASR,OAAO,IAAIS,mBAAmB,QAAQ,+DAA+D;AAK9G,SAASC,eAAe,QAAQ,oEAAoE;AACpG,SAASC,cAAc,IAAIC,OAAO,QAAQ,mEAAmE;AAiB7G,SAASC,wBAAwB,QAAQ,oEAAoE;AAO7G,SACEC,SAAS,EACTC,UAAU,EACVC,UAAU,EACVC,gBAAgB,EAChBC,gBAAgB,QACX,4DAA4D;AACnE,SACEC,kBAAkB,EAClBC,uBAAuB,EACvBC,gBAAgB,EAChBC,wBAAwB,QACnB,wDAAwD;AAC/D,SACEC,UAAU,EACVC,MAAM,EACNC,SAAS,EACTC,mBAAmB,EACnBC,QAAQ,EACRC,cAAc,QACT,+DAA+D;AAwCtE,SAAS5B,OAAO,IAAI6B,SAAS,QAAQ,uDAAuD;AAS5F,SAAS7B,OAAO,IAAI8B,YAAY,QAAQ,0DAA0D;AAElG,SACEC,mCAAmC,EACnCC,6BAA6B,QACxB,6DAA6D;AAEpEnC,UAAU,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"
|
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"}
|