@react-native-oh-tpl/react-native-gesture-handler 2.12.9-1 → 2.14.1
Sign up to get free protection for your applications and to get access to all the features.
- package/DrawerLayout/index.ts +2 -0
- package/Swipeable/index.ts +2 -0
- package/harmony/gesture_handler.har +0 -0
- package/lib/commonjs/RNGestureHandlerModule.js +2 -3
- 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 +15 -18
- package/lib/commonjs/handlers/createHandler.js.map +1 -1
- package/lib/commonjs/index.js +94 -137
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/specs/NativeRNGestureHandlerModule.js +1 -2
- package/lib/commonjs/specs/NativeRNGestureHandlerModule.js.map +1 -1
- package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js +2 -3
- package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js +2 -3
- 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 +12 -15
- package/lib/module/handlers/createHandler.js.map +1 -1
- package/lib/module/index.js +10 -141
- 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 +42 -9
- 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 +74 -66
- 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
- package/harmony/gesture_handler/BuildProfile.ets +0 -6
- package/harmony/gesture_handler/build-profile.json5 +0 -19
- package/harmony/gesture_handler/hvigorfile.ts +0 -2
- package/harmony/gesture_handler/index.ets +0 -3
- package/harmony/gesture_handler/oh-package-lock.json5 +0 -18
- package/harmony/gesture_handler/oh-package.json5 +0 -12
- package/harmony/gesture_handler/src/main/cpp/CMakeLists.txt +0 -8
- package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.cpp +0 -103
- package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.h +0 -21
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonComponentDescriptor.h +0 -36
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonComponentInstance.h +0 -27
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonJSIBinder.h +0 -32
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.cpp +0 -22
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.h +0 -15
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerPackage.h +0 -72
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewComponentDescriptor.h +0 -36
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewComponentInstance.h +0 -123
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewJSIBinder.h +0 -25
- package/harmony/gesture_handler/src/main/ets/CircularBuffer.ts +0 -42
- package/harmony/gesture_handler/src/main/ets/Event.ts +0 -68
- package/harmony/gesture_handler/src/main/ets/EventDispatcher.ts +0 -53
- package/harmony/gesture_handler/src/main/ets/GestureHandler.ts +0 -663
- package/harmony/gesture_handler/src/main/ets/GestureHandlerArkUIAdapter.ts +0 -203
- package/harmony/gesture_handler/src/main/ets/GestureHandlerFactory.ts +0 -45
- package/harmony/gesture_handler/src/main/ets/GestureHandlerOrchestrator.ts +0 -280
- package/harmony/gesture_handler/src/main/ets/GestureHandlerPackage.ts +0 -22
- package/harmony/gesture_handler/src/main/ets/GestureHandlerRegistry.ts +0 -28
- package/harmony/gesture_handler/src/main/ets/InteractionManager.ts +0 -109
- package/harmony/gesture_handler/src/main/ets/LeastSquareSolver.ts +0 -182
- package/harmony/gesture_handler/src/main/ets/NativeViewGestureHandler.ts +0 -115
- package/harmony/gesture_handler/src/main/ets/OutgoingEvent.ts +0 -34
- package/harmony/gesture_handler/src/main/ets/PanGestureHandler.ts +0 -328
- package/harmony/gesture_handler/src/main/ets/PointerTracker.ts +0 -239
- package/harmony/gesture_handler/src/main/ets/RNGHError.ts +0 -5
- package/harmony/gesture_handler/src/main/ets/RNGHLogger.ts +0 -48
- package/harmony/gesture_handler/src/main/ets/RNGHRootTouchHandlerArkTS.ts +0 -60
- package/harmony/gesture_handler/src/main/ets/RNGHRootTouchHandlerCAPI.ts +0 -87
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerButton.ets +0 -38
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerModule.ts +0 -183
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerRootView.ets +0 -53
- package/harmony/gesture_handler/src/main/ets/RNOHScrollLocker.ts +0 -23
- package/harmony/gesture_handler/src/main/ets/State.ts +0 -47
- package/harmony/gesture_handler/src/main/ets/TapGestureHandler.ts +0 -206
- package/harmony/gesture_handler/src/main/ets/Vector2D.ts +0 -36
- package/harmony/gesture_handler/src/main/ets/VelocityTracker.ts +0 -98
- package/harmony/gesture_handler/src/main/ets/View.ts +0 -71
- package/harmony/gesture_handler/src/main/ets/ViewRegistry.ts +0 -43
- package/harmony/gesture_handler/src/main/ets/namespace/RNGestureHandlerButton.ts +0 -140
- package/harmony/gesture_handler/src/main/ets/namespace/RNGestureHandlerModule.ts +0 -25
- package/harmony/gesture_handler/src/main/ets/namespace/RNGestureHandlerRootView.ts +0 -101
- package/harmony/gesture_handler/src/main/ets/namespace/ts.ts +0 -3
- package/harmony/gesture_handler/src/main/ets/pages/Index.ets +0 -17
- package/harmony/gesture_handler/src/main/ets/types.ts +0 -25
- package/harmony/gesture_handler/src/main/ets/webviewability/WebviewAbility.ts +0 -41
- package/harmony/gesture_handler/src/main/module.json5 +0 -7
- package/harmony/gesture_handler/src/main/resources/base/element/color.json +0 -8
- package/harmony/gesture_handler/src/main/resources/base/element/string.json +0 -16
- 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 +0 -5
- package/harmony/gesture_handler/src/main/resources/en_US/element/string.json +0 -16
- package/harmony/gesture_handler/src/main/resources/zh_CN/element/string.json +0 -16
- package/harmony/gesture_handler/ts.ts +0 -2
package/package.json
CHANGED
@@ -1,66 +1,74 @@
|
|
1
|
-
{
|
2
|
-
"name": "@react-native-oh-tpl/react-native-gesture-handler",
|
3
|
-
"harmony": {
|
4
|
-
"alias": "react-native-gesture-handler",
|
5
|
-
"redirectInternalImports": true
|
6
|
-
},
|
7
|
-
"repository": {
|
8
|
-
"type": "git",
|
9
|
-
"url": "https://github.com/react-native-oh-library/react-native-harmony-gesture-handler.git"
|
10
|
-
},
|
11
|
-
"version": "2.
|
12
|
-
"description": "",
|
13
|
-
"react-native": "src/index.ts",
|
14
|
-
"main": "lib/commonjs/index.js",
|
15
|
-
"module": "lib/module/index.js",
|
16
|
-
"types": "lib/typescript/index.d.ts",
|
17
|
-
"scripts": {
|
18
|
-
"prepack": "bob build",
|
19
|
-
"test": "jest",
|
20
|
-
"pack:
|
21
|
-
"
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
"react
|
26
|
-
"react-native
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
"
|
31
|
-
"
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
"@babel/
|
38
|
-
"@babel/
|
39
|
-
"@babel/
|
40
|
-
"@
|
41
|
-
"
|
42
|
-
"react": "^
|
43
|
-
"
|
44
|
-
"react
|
45
|
-
"
|
46
|
-
|
47
|
-
|
48
|
-
"
|
49
|
-
"
|
50
|
-
"
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
"
|
55
|
-
"
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
1
|
+
{
|
2
|
+
"name": "@react-native-oh-tpl/react-native-gesture-handler",
|
3
|
+
"harmony": {
|
4
|
+
"alias": "react-native-gesture-handler",
|
5
|
+
"redirectInternalImports": true
|
6
|
+
},
|
7
|
+
"repository": {
|
8
|
+
"type": "git",
|
9
|
+
"url": "https://github.com/react-native-oh-library/react-native-harmony-gesture-handler.git"
|
10
|
+
},
|
11
|
+
"version": "2.14.1",
|
12
|
+
"description": "",
|
13
|
+
"react-native": "src/index.ts",
|
14
|
+
"main": "lib/commonjs/index.js",
|
15
|
+
"module": "lib/module/index.js",
|
16
|
+
"types": "lib/typescript/index.d.ts",
|
17
|
+
"scripts": {
|
18
|
+
"prepack": "bob build",
|
19
|
+
"test": "jest",
|
20
|
+
"pack:prod": "npm pack",
|
21
|
+
"update_version": "node ./scripts/update-version.js",
|
22
|
+
"deploy": "node ./scripts/deploy.js"
|
23
|
+
},
|
24
|
+
"peerDependencies": {
|
25
|
+
"react": "*",
|
26
|
+
"react-native": "*",
|
27
|
+
"react-native-gesture-handler": "2.14.1",
|
28
|
+
"react-native-harmony": "*"
|
29
|
+
},
|
30
|
+
"keywords": [],
|
31
|
+
"author": "",
|
32
|
+
"license": "ISC",
|
33
|
+
"dependencies": {
|
34
|
+
"react-native-gesture-handler": "2.14.1"
|
35
|
+
},
|
36
|
+
"devDependencies": {
|
37
|
+
"@babel/core": "^7.12.9",
|
38
|
+
"@babel/plugin-proposal-class-properties": "^7.12.1",
|
39
|
+
"@babel/preset-env": "^7.12.11",
|
40
|
+
"@babel/preset-typescript": "^7.12.7",
|
41
|
+
"@babel/runtime": "^7.12.5",
|
42
|
+
"@types/hoist-non-react-statics": "^3.3.1",
|
43
|
+
"@types/invariant": "^2.2.37",
|
44
|
+
"@types/react": "^18.2.18",
|
45
|
+
"metro-react-native-babel-preset": "^0.64.0",
|
46
|
+
"react": "^18.2.0",
|
47
|
+
"react-native": "^0.72.0",
|
48
|
+
"react-native-builder-bob": "^0.21.3",
|
49
|
+
"react-native-gesture-handler": "2.14.1",
|
50
|
+
"react-native-harmony": "*",
|
51
|
+
"typescript": "4.5.5"
|
52
|
+
},
|
53
|
+
"files": [
|
54
|
+
"./harmony/*",
|
55
|
+
"src",
|
56
|
+
"lib",
|
57
|
+
"DrawerLayout/",
|
58
|
+
"Swipeable/"
|
59
|
+
],
|
60
|
+
"react-native-builder-bob": {
|
61
|
+
"source": "src",
|
62
|
+
"output": "lib",
|
63
|
+
"targets": [
|
64
|
+
"commonjs",
|
65
|
+
"module",
|
66
|
+
[
|
67
|
+
"typescript",
|
68
|
+
{
|
69
|
+
"project": "tsconfig.build.json"
|
70
|
+
}
|
71
|
+
]
|
72
|
+
]
|
73
|
+
}
|
74
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import NativeRNGestureHandlerModule from '../src/specs/NativeRNGestureHandlerModule';
|
2
|
-
|
3
|
-
const RNGestureHandlerModule = NativeRNGestureHandlerModule;
|
4
|
-
|
1
|
+
import NativeRNGestureHandlerModule from '../src/specs/NativeRNGestureHandlerModule';
|
2
|
+
|
3
|
+
const RNGestureHandlerModule = NativeRNGestureHandlerModule;
|
4
|
+
|
5
5
|
export default RNGestureHandlerModule;
|
@@ -1,23 +1,23 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import { PropsWithChildren } from 'react';
|
3
|
-
import { ViewProps } from 'react-native';
|
4
|
-
import { maybeInitializeFabric } from "react-native-gesture-handler/src/init";
|
5
|
-
import GestureHandlerRootViewContext from 'react-native-gesture-handler/src/GestureHandlerRootViewContext';
|
6
|
-
import RNGestureHandlerRootViewNativeComponent from '../specs/RNGestureHandlerRootViewNativeComponent';
|
7
|
-
export interface GestureHandlerRootViewProps
|
8
|
-
extends PropsWithChildren<ViewProps> {}
|
9
|
-
|
10
|
-
export default function GestureHandlerRootView(
|
11
|
-
props: GestureHandlerRootViewProps
|
12
|
-
) {
|
13
|
-
// try initialize fabric on the first render, at this point we can
|
14
|
-
// reliably check if fabric is enabled (the function contains a flag
|
15
|
-
// to make sure it's called only once)
|
16
|
-
maybeInitializeFabric();
|
17
|
-
|
18
|
-
return (
|
19
|
-
<GestureHandlerRootViewContext.Provider value>
|
20
|
-
<RNGestureHandlerRootViewNativeComponent {...props} />
|
21
|
-
</GestureHandlerRootViewContext.Provider>
|
22
|
-
);
|
23
|
-
}
|
1
|
+
import * as React from 'react';
|
2
|
+
import { PropsWithChildren } from 'react';
|
3
|
+
import { ViewProps } from 'react-native';
|
4
|
+
import { maybeInitializeFabric } from "react-native-gesture-handler/src/init";
|
5
|
+
import GestureHandlerRootViewContext from 'react-native-gesture-handler/src/GestureHandlerRootViewContext';
|
6
|
+
import RNGestureHandlerRootViewNativeComponent from '../specs/RNGestureHandlerRootViewNativeComponent';
|
7
|
+
export interface GestureHandlerRootViewProps
|
8
|
+
extends PropsWithChildren<ViewProps> {}
|
9
|
+
|
10
|
+
export default function GestureHandlerRootView(
|
11
|
+
props: GestureHandlerRootViewProps
|
12
|
+
) {
|
13
|
+
// try initialize fabric on the first render, at this point we can
|
14
|
+
// reliably check if fabric is enabled (the function contains a flag
|
15
|
+
// to make sure it's called only once)
|
16
|
+
maybeInitializeFabric();
|
17
|
+
|
18
|
+
return (
|
19
|
+
<GestureHandlerRootViewContext.Provider value>
|
20
|
+
<RNGestureHandlerRootViewNativeComponent {...props} />
|
21
|
+
</GestureHandlerRootViewContext.Provider>
|
22
|
+
);
|
23
|
+
}
|