@react-native-oh-tpl/react-native-gesture-handler 2.12.6-1 → 2.12.6-2
Sign up to get free protection for your applications and to get access to all the features.
- package/harmony/gesture_handler/LICENSE +21 -0
- package/harmony/gesture_handler/OAT.xml +44 -0
- package/harmony/gesture_handler/README.OpenSource +11 -0
- package/harmony/gesture_handler/README.md +1 -0
- package/harmony/gesture_handler/build-profile.json5 +7 -7
- package/harmony/gesture_handler/hvigorfile.ts +2 -2
- package/harmony/gesture_handler/index.ets +2 -2
- package/harmony/gesture_handler/oh-package.json5 +13 -11
- package/harmony/gesture_handler/src/main/cpp/CMakeLists.txt +8 -8
- package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.cpp +33 -33
- package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.h +14 -14
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonComponentDescriptor.h +60 -60
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.cpp +17 -17
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.h +11 -11
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewComponentDescriptor.h +60 -60
- 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 +37 -37
- package/harmony/gesture_handler/src/main/ets/GestureHandler.ts +663 -663
- package/harmony/gesture_handler/src/main/ets/GestureHandlerArkUIAdapter.ets +201 -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 +28 -28
- package/harmony/gesture_handler/src/main/ets/RNGHRootTouchHandler.ets +57 -57
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerButton.ets +36 -36
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerModule.ts +125 -125
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerRootView.ets +56 -55
- package/harmony/gesture_handler/src/main/ets/RNOHScrollLocker.ts +10 -10
- 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/pages/Index.ets +16 -16
- package/harmony/gesture_handler/src/main/ets/webviewability/WebviewAbility.ts +41 -41
- package/harmony/gesture_handler/src/main/module.json5 +6 -6
- 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.har +0 -0
- package/lib/commonjs/components/touchables/GenericTouchable.js +9 -9
- package/lib/commonjs/components/touchables/TouchableOpacity.js +2 -2
- package/lib/commonjs/handlers/createNativeWrapper.js +6 -6
- package/lib/commonjs/handlers/gestures/GestureDetector.js +3 -3
- package/lib/module/components/touchables/GenericTouchable.js +9 -9
- package/lib/module/components/touchables/TouchableOpacity.js +2 -2
- package/lib/module/handlers/createNativeWrapper.js +6 -6
- package/lib/module/handlers/gestures/GestureDetector.js +3 -3
- package/package.json +70 -70
- package/src/RNGestureHandlerModule.ts +6 -6
- package/src/components/GestureButtons.tsx +334 -334
- package/src/components/GestureHandlerButton.tsx +5 -5
- package/src/components/GestureHandlerRootView.tsx +34 -34
- package/src/components/RNGestureHandlerButton.tsx +23 -23
- package/src/components/touchables/GenericTouchable.tsx +301 -301
- package/src/components/touchables/TouchableOpacity.tsx +76 -76
- package/src/components/touchables/TouchableWithoutFeedback.tsx +14 -14
- package/src/components/touchables/index.ts +7 -7
- package/src/handlers/NativeViewGestureHandler.ts +55 -55
- package/src/handlers/PanGestureHandler.ts +327 -327
- package/src/handlers/TapGestureHandler.ts +95 -95
- package/src/handlers/createHandler.tsx +535 -535
- package/src/handlers/createNativeWrapper.tsx +81 -81
- package/src/handlers/gestureHandlerCommon.ts +15 -15
- package/src/handlers/gestures/GestureDetector.tsx +823 -823
- package/src/index.ts +172 -172
- package/src/init.ts +18 -18
package/package.json
CHANGED
@@ -1,70 +1,70 @@
|
|
1
|
-
{
|
2
|
-
"name": "@react-native-oh-tpl/react-native-gesture-handler",
|
3
|
-
"harmony": {
|
4
|
-
"alias": "react-native-gesture-handler"
|
5
|
-
},
|
6
|
-
"version": "2.12.6-
|
7
|
-
"description": "",
|
8
|
-
"react-native": "src/index.ts",
|
9
|
-
"main": "lib/commonjs/index.js",
|
10
|
-
"module": "lib/module/index.js",
|
11
|
-
"types": "lib/typescript/index.d.ts",
|
12
|
-
"repository": {
|
13
|
-
"type": "git",
|
14
|
-
"url": "https://github.com/react-native-oh-library/react-native-
|
15
|
-
},
|
16
|
-
"publishConfig": {
|
17
|
-
"registry": "https://registry.npmjs.org/",
|
18
|
-
"access": "public"
|
19
|
-
},
|
20
|
-
"scripts": {
|
21
|
-
"prepack": "bob build",
|
22
|
-
"test": "jest",
|
23
|
-
"pack:harmony": "react-native pack-harmony --oh-module-path ../tester/harmony/react_native_modules/gesture_handler --harmony-dir-path ./harmony --package-json-path ./package.json",
|
24
|
-
"pack:prod": "npm run pack:harmony && npm pack"
|
25
|
-
},
|
26
|
-
"peerDependencies": {
|
27
|
-
"react": "*",
|
28
|
-
"react-native": "*",
|
29
|
-
"react-native-harmony": "*"
|
30
|
-
},
|
31
|
-
"keywords": [],
|
32
|
-
"author": "",
|
33
|
-
"license": "ISC",
|
34
|
-
"dependencies": {
|
35
|
-
"react-native-gesture-handler": "2.12.1 - 2.13.4"
|
36
|
-
},
|
37
|
-
"devDependencies": {
|
38
|
-
"@babel/core": "^7.12.9",
|
39
|
-
"@babel/plugin-proposal-class-properties": "^7.12.1",
|
40
|
-
"@babel/preset-env": "^7.12.11",
|
41
|
-
"@babel/preset-typescript": "^7.12.7",
|
42
|
-
"@babel/runtime": "^7.12.5",
|
43
|
-
"metro-react-native-babel-preset": "^0.64.0",
|
44
|
-
"@types/react": "^18.2.18",
|
45
|
-
"react": "^18.2.0",
|
46
|
-
"react-native": "^0.72.0",
|
47
|
-
"react-native-builder-bob": "^0.21.3",
|
48
|
-
"react-native-harmony": "npm:@react-native-oh/react-native-harmony@^0.72.11",
|
49
|
-
"typescript": "4.5.5"
|
50
|
-
},
|
51
|
-
"files": [
|
52
|
-
"harmony",
|
53
|
-
"src",
|
54
|
-
"lib"
|
55
|
-
],
|
56
|
-
"react-native-builder-bob": {
|
57
|
-
"source": "src",
|
58
|
-
"output": "lib",
|
59
|
-
"targets": [
|
60
|
-
"commonjs",
|
61
|
-
"module",
|
62
|
-
[
|
63
|
-
"typescript",
|
64
|
-
{
|
65
|
-
"project": "tsconfig.build.json"
|
66
|
-
}
|
67
|
-
]
|
68
|
-
]
|
69
|
-
}
|
70
|
-
}
|
1
|
+
{
|
2
|
+
"name": "@react-native-oh-tpl/react-native-gesture-handler",
|
3
|
+
"harmony": {
|
4
|
+
"alias": "react-native-gesture-handler"
|
5
|
+
},
|
6
|
+
"version": "2.12.6-2",
|
7
|
+
"description": "",
|
8
|
+
"react-native": "src/index.ts",
|
9
|
+
"main": "lib/commonjs/index.js",
|
10
|
+
"module": "lib/module/index.js",
|
11
|
+
"types": "lib/typescript/index.d.ts",
|
12
|
+
"repository": {
|
13
|
+
"type": "git",
|
14
|
+
"url": "https://github.com/react-native-oh-library/react-native-gesture-handler.git"
|
15
|
+
},
|
16
|
+
"publishConfig": {
|
17
|
+
"registry": "https://registry.npmjs.org/",
|
18
|
+
"access": "public"
|
19
|
+
},
|
20
|
+
"scripts": {
|
21
|
+
"prepack": "bob build",
|
22
|
+
"test": "jest",
|
23
|
+
"pack:harmony": "react-native pack-harmony --oh-module-path ../tester/harmony/react_native_modules/gesture_handler --harmony-dir-path ./harmony --package-json-path ./package.json",
|
24
|
+
"pack:prod": "npm run pack:harmony && npm pack"
|
25
|
+
},
|
26
|
+
"peerDependencies": {
|
27
|
+
"react": "*",
|
28
|
+
"react-native": "*",
|
29
|
+
"react-native-harmony": "*"
|
30
|
+
},
|
31
|
+
"keywords": [],
|
32
|
+
"author": "",
|
33
|
+
"license": "ISC",
|
34
|
+
"dependencies": {
|
35
|
+
"react-native-gesture-handler": "2.12.1 - 2.13.4"
|
36
|
+
},
|
37
|
+
"devDependencies": {
|
38
|
+
"@babel/core": "^7.12.9",
|
39
|
+
"@babel/plugin-proposal-class-properties": "^7.12.1",
|
40
|
+
"@babel/preset-env": "^7.12.11",
|
41
|
+
"@babel/preset-typescript": "^7.12.7",
|
42
|
+
"@babel/runtime": "^7.12.5",
|
43
|
+
"metro-react-native-babel-preset": "^0.64.0",
|
44
|
+
"@types/react": "^18.2.18",
|
45
|
+
"react": "^18.2.0",
|
46
|
+
"react-native": "^0.72.0",
|
47
|
+
"react-native-builder-bob": "^0.21.3",
|
48
|
+
"react-native-harmony": "npm:@react-native-oh/react-native-harmony@^0.72.11",
|
49
|
+
"typescript": "4.5.5"
|
50
|
+
},
|
51
|
+
"files": [
|
52
|
+
"harmony",
|
53
|
+
"src",
|
54
|
+
"lib"
|
55
|
+
],
|
56
|
+
"react-native-builder-bob": {
|
57
|
+
"source": "src",
|
58
|
+
"output": "lib",
|
59
|
+
"targets": [
|
60
|
+
"commonjs",
|
61
|
+
"module",
|
62
|
+
[
|
63
|
+
"typescript",
|
64
|
+
{
|
65
|
+
"project": "tsconfig.build.json"
|
66
|
+
}
|
67
|
+
]
|
68
|
+
]
|
69
|
+
}
|
70
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import {TurboModule, TurboModuleRegistry} from 'react-native';
|
2
|
-
import {RNGestureHandlerModuleProps} from "react-native-gesture-handler/src/RNGestureHandlerModule"
|
3
|
-
|
4
|
-
interface Spec extends TurboModule, RNGestureHandlerModuleProps {}
|
5
|
-
|
6
|
-
export const RNGestureHandlerModule = TurboModuleRegistry.get<Spec>('RNGestureHandlerModule')!;
|
1
|
+
import {TurboModule, TurboModuleRegistry} from 'react-native';
|
2
|
+
import {RNGestureHandlerModuleProps} from "react-native-gesture-handler/src/RNGestureHandlerModule"
|
3
|
+
|
4
|
+
interface Spec extends TurboModule, RNGestureHandlerModuleProps {}
|
5
|
+
|
6
|
+
export const RNGestureHandlerModule = TurboModuleRegistry.get<Spec>('RNGestureHandlerModule')!;
|