@react-native-oh-tpl/react-native-gesture-handler 2.12.6-2 → 2.12.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/harmony/gesture_handler/BuildProfile.ets +5 -0
- package/harmony/gesture_handler/build-profile.json5 +13 -2
- package/harmony/gesture_handler/hvigorfile.ts +1 -1
- package/harmony/gesture_handler/index.ets +1 -1
- package/harmony/gesture_handler/oh-package-lock.json5 +17 -0
- package/harmony/gesture_handler/oh-package.json5 +10 -11
- package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.cpp +75 -6
- package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.h +14 -8
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonComponentDescriptor.h +4 -28
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonComponentInstance.h +27 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonJSIBinder.h +32 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.cpp +17 -12
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.h +5 -2
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerPackage.h +72 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewComponentDescriptor.h +4 -28
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewComponentInstance.h +78 -0
- package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewJSIBinder.h +25 -0
- package/harmony/gesture_handler/src/main/ets/EventDispatcher.ts +16 -1
- package/harmony/gesture_handler/src/main/ets/GestureHandler.ts +2 -2
- package/harmony/gesture_handler/src/main/ets/{GestureHandlerArkUIAdapter.ets → GestureHandlerArkUIAdapter.ts} +2 -1
- package/harmony/gesture_handler/src/main/ets/GestureHandlerPackage.ts +2 -2
- package/harmony/gesture_handler/src/main/ets/OutgoingEvent.ts +5 -5
- package/harmony/gesture_handler/src/main/ets/RNGHLogger.ts +20 -1
- package/harmony/gesture_handler/src/main/ets/{RNGHRootTouchHandler.ets → RNGHRootTouchHandlerArkTS.ts} +5 -3
- package/harmony/gesture_handler/src/main/ets/RNGHRootTouchHandlerCAPI.ts +87 -0
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerButton.ets +4 -3
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerModule.ts +65 -7
- package/harmony/gesture_handler/src/main/ets/RNGestureHandlerRootView.ets +7 -11
- package/harmony/gesture_handler/src/main/ets/RNOHScrollLocker.ts +17 -5
- package/harmony/gesture_handler/src/main/ets/View.ts +1 -1
- package/harmony/gesture_handler/src/main/ets/ViewRegistry.ts +1 -1
- package/harmony/gesture_handler/src/main/ets/namespace/RNGestureHandlerButton.ts +140 -0
- package/harmony/gesture_handler/src/main/ets/namespace/RNGestureHandlerModule.ts +25 -0
- package/harmony/gesture_handler/src/main/ets/namespace/RNGestureHandlerRootView.ts +101 -0
- package/harmony/gesture_handler/src/main/ets/namespace/ts.ts +3 -0
- package/harmony/gesture_handler/src/main/ets/types.ts +25 -0
- package/harmony/gesture_handler/src/main/module.json5 +6 -6
- package/harmony/gesture_handler/ts.ts +2 -1
- package/harmony/gesture_handler.har +0 -0
- package/lib/commonjs/RNGestureHandlerModule.js +6 -3
- package/lib/commonjs/RNGestureHandlerModule.js.map +1 -1
- package/lib/commonjs/components/GestureHandlerRootView.js +5 -13
- package/lib/commonjs/components/GestureHandlerRootView.js.map +1 -1
- package/lib/commonjs/handlers/createHandler.js +31 -28
- package/lib/commonjs/handlers/createHandler.js.map +1 -1
- package/lib/commonjs/index.js +42 -19
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/specs/NativeRNGestureHandlerModule.js +10 -0
- package/lib/commonjs/specs/NativeRNGestureHandlerModule.js.map +1 -0
- package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js +11 -0
- package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -0
- package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js +11 -0
- package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -0
- package/lib/module/RNGestureHandlerModule.js +3 -2
- package/lib/module/RNGestureHandlerModule.js.map +1 -1
- package/lib/module/components/GestureHandlerRootView.js +3 -11
- package/lib/module/components/GestureHandlerRootView.js.map +1 -1
- package/lib/module/handlers/createHandler.js +20 -19
- package/lib/module/handlers/createHandler.js.map +1 -1
- package/lib/module/index.js +6 -14
- package/lib/module/index.js.map +1 -1
- package/lib/module/specs/NativeRNGestureHandlerModule.js +3 -0
- package/lib/module/specs/NativeRNGestureHandlerModule.js.map +1 -0
- package/lib/module/specs/RNGestureHandlerButtonNativeComponent.js +3 -0
- package/lib/module/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -0
- package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.js +3 -0
- package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -0
- package/lib/typescript/RNGestureHandlerModule.d.ts +2 -6
- package/lib/typescript/RNGestureHandlerModule.d.ts.map +1 -1
- package/lib/typescript/components/GestureHandlerRootView.d.ts +6 -6
- package/lib/typescript/components/GestureHandlerRootView.d.ts.map +1 -1
- package/lib/typescript/handlers/createHandler.d.ts +11 -11
- package/lib/typescript/handlers/createHandler.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +9 -8
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts +15 -0
- package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts.map +1 -0
- package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts +15 -0
- package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts.map +1 -0
- package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts +7 -0
- package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts.map +1 -0
- package/package.json +9 -13
- package/src/RNGestureHandlerModule.ts +3 -4
- package/src/components/GestureHandlerRootView.tsx +4 -15
- package/src/handlers/createHandler.tsx +4 -5
- package/src/index.ts +13 -13
- package/src/specs/NativeRNGestureHandlerModule.ts +26 -0
- package/src/specs/RNGestureHandlerButtonNativeComponent.ts +18 -0
- package/src/specs/RNGestureHandlerRootViewNativeComponent.ts +6 -0
- package/README.md +0 -1
- package/harmony/gesture_handler/LICENSE +0 -21
- package/harmony/gesture_handler/OAT.xml +0 -44
- package/harmony/gesture_handler/README.OpenSource +0 -11
- package/harmony/gesture_handler/README.md +0 -1
- package/lib/commonjs/components/GestureButtons.js +0 -186
- package/lib/commonjs/components/GestureButtons.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerButton.js +0 -9
- package/lib/commonjs/components/GestureHandlerButton.js.map +0 -1
- package/lib/commonjs/components/RNGestureHandlerButton.js +0 -23
- package/lib/commonjs/components/RNGestureHandlerButton.js.map +0 -1
- package/lib/commonjs/components/touchables/GenericTouchable.js +0 -247
- package/lib/commonjs/components/touchables/GenericTouchable.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableOpacity.js +0 -58
- package/lib/commonjs/components/touchables/TouchableOpacity.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableWithoutFeedback.js +0 -18
- package/lib/commonjs/components/touchables/TouchableWithoutFeedback.js.map +0 -1
- package/lib/commonjs/components/touchables/index.js +0 -21
- package/lib/commonjs/components/touchables/index.js.map +0 -1
- package/lib/commonjs/handlers/NativeViewGestureHandler.js +0 -19
- package/lib/commonjs/handlers/NativeViewGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/PanGestureHandler.js +0 -103
- package/lib/commonjs/handlers/PanGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/TapGestureHandler.js +0 -22
- package/lib/commonjs/handlers/TapGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/createNativeWrapper.js +0 -64
- package/lib/commonjs/handlers/createNativeWrapper.js.map +0 -1
- package/lib/commonjs/handlers/gestureHandlerCommon.js +0 -22
- package/lib/commonjs/handlers/gestureHandlerCommon.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector.js +0 -554
- package/lib/commonjs/handlers/gestures/GestureDetector.js.map +0 -1
- package/lib/commonjs/init.js +0 -24
- package/lib/commonjs/init.js.map +0 -1
- package/lib/module/components/GestureButtons.js +0 -168
- package/lib/module/components/GestureButtons.js.map +0 -1
- package/lib/module/components/GestureHandlerButton.js +0 -3
- package/lib/module/components/GestureHandlerButton.js.map +0 -1
- package/lib/module/components/RNGestureHandlerButton.js +0 -17
- package/lib/module/components/RNGestureHandlerButton.js.map +0 -1
- package/lib/module/components/touchables/GenericTouchable.js +0 -238
- package/lib/module/components/touchables/GenericTouchable.js.map +0 -1
- package/lib/module/components/touchables/TouchableOpacity.js +0 -49
- package/lib/module/components/touchables/TouchableOpacity.js.map +0 -1
- package/lib/module/components/touchables/TouchableWithoutFeedback.js +0 -9
- package/lib/module/components/touchables/TouchableWithoutFeedback.js.map +0 -1
- package/lib/module/components/touchables/index.js +0 -8
- package/lib/module/components/touchables/index.js.map +0 -1
- package/lib/module/handlers/NativeViewGestureHandler.js +0 -12
- package/lib/module/handlers/NativeViewGestureHandler.js.map +0 -1
- package/lib/module/handlers/PanGestureHandler.js +0 -92
- package/lib/module/handlers/PanGestureHandler.js.map +0 -1
- package/lib/module/handlers/TapGestureHandler.js +0 -14
- package/lib/module/handlers/TapGestureHandler.js.map +0 -1
- package/lib/module/handlers/createNativeWrapper.js +0 -57
- package/lib/module/handlers/createNativeWrapper.js.map +0 -1
- package/lib/module/handlers/gestureHandlerCommon.js +0 -15
- package/lib/module/handlers/gestureHandlerCommon.js.map +0 -1
- package/lib/module/handlers/gestures/GestureDetector.js +0 -543
- package/lib/module/handlers/gestures/GestureDetector.js.map +0 -1
- package/lib/module/init.js +0 -17
- package/lib/module/init.js.map +0 -1
- package/lib/typescript/components/GestureButtons.d.ts +0 -122
- package/lib/typescript/components/GestureButtons.d.ts.map +0 -1
- package/lib/typescript/components/GestureHandlerButton.d.ts +0 -5
- package/lib/typescript/components/GestureHandlerButton.d.ts.map +0 -1
- package/lib/typescript/components/RNGestureHandlerButton.d.ts +0 -2
- package/lib/typescript/components/RNGestureHandlerButton.d.ts.map +0 -1
- package/lib/typescript/components/touchables/GenericTouchable.d.ts +0 -68
- package/lib/typescript/components/touchables/GenericTouchable.d.ts.map +0 -1
- package/lib/typescript/components/touchables/TouchableOpacity.d.ts +0 -26
- package/lib/typescript/components/touchables/TouchableOpacity.d.ts.map +0 -1
- package/lib/typescript/components/touchables/TouchableWithoutFeedback.d.ts +0 -8
- package/lib/typescript/components/touchables/TouchableWithoutFeedback.d.ts.map +0 -1
- package/lib/typescript/components/touchables/index.d.ts +0 -4
- package/lib/typescript/components/touchables/index.d.ts.map +0 -1
- package/lib/typescript/handlers/NativeViewGestureHandler.d.ts +0 -29
- package/lib/typescript/handlers/NativeViewGestureHandler.d.ts.map +0 -1
- package/lib/typescript/handlers/PanGestureHandler.d.ts +0 -140
- package/lib/typescript/handlers/PanGestureHandler.d.ts.map +0 -1
- package/lib/typescript/handlers/TapGestureHandler.d.ts +0 -58
- package/lib/typescript/handlers/TapGestureHandler.d.ts.map +0 -1
- package/lib/typescript/handlers/createNativeWrapper.d.ts +0 -4
- package/lib/typescript/handlers/createNativeWrapper.d.ts.map +0 -1
- package/lib/typescript/handlers/gestureHandlerCommon.d.ts +0 -2
- package/lib/typescript/handlers/gestureHandlerCommon.d.ts.map +0 -1
- package/lib/typescript/handlers/gestures/GestureDetector.d.ts +0 -24
- package/lib/typescript/handlers/gestures/GestureDetector.d.ts.map +0 -1
- package/lib/typescript/init.d.ts +0 -3
- package/lib/typescript/init.d.ts.map +0 -1
- package/src/components/GestureButtons.tsx +0 -334
- package/src/components/GestureHandlerButton.tsx +0 -5
- package/src/components/RNGestureHandlerButton.tsx +0 -23
- package/src/components/touchables/GenericTouchable.tsx +0 -301
- package/src/components/touchables/TouchableOpacity.tsx +0 -76
- package/src/components/touchables/TouchableWithoutFeedback.tsx +0 -14
- package/src/components/touchables/index.ts +0 -7
- package/src/handlers/NativeViewGestureHandler.ts +0 -55
- package/src/handlers/PanGestureHandler.ts +0 -327
- package/src/handlers/TapGestureHandler.ts +0 -95
- package/src/handlers/createNativeWrapper.tsx +0 -81
- package/src/handlers/gestureHandlerCommon.ts +0 -15
- package/src/handlers/gestures/GestureDetector.tsx +0 -823
- package/src/init.ts +0 -18
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
import {ReactNativeViewAttributes, registerViewConfig} from "react-native-harmony"
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import { PropsWithChildren } from 'react';
|
|
4
3
|
import { ViewProps } from 'react-native';
|
|
5
|
-
import { maybeInitializeFabric } from
|
|
4
|
+
import { maybeInitializeFabric } from "react-native-gesture-handler/src/init";
|
|
6
5
|
import GestureHandlerRootViewContext from 'react-native-gesture-handler/src/GestureHandlerRootViewContext';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const GestureHandlerRootViewNativeComponent = registerViewConfig('RNGestureHandlerRootView', () => ({
|
|
10
|
-
uiViewClassName: 'RNGestureHandlerRootView',
|
|
11
|
-
bubblingEventTypes: {},
|
|
12
|
-
directEventTypes: {},
|
|
13
|
-
validAttributes: {
|
|
14
|
-
...ReactNativeViewAttributes.UIView,
|
|
15
|
-
},
|
|
16
|
-
}));
|
|
17
|
-
|
|
6
|
+
import RNGestureHandlerRootViewNativeComponent from '../specs/RNGestureHandlerRootViewNativeComponent';
|
|
18
7
|
export interface GestureHandlerRootViewProps
|
|
19
8
|
extends PropsWithChildren<ViewProps> {}
|
|
20
9
|
|
|
@@ -24,11 +13,11 @@ export default function GestureHandlerRootView(
|
|
|
24
13
|
// try initialize fabric on the first render, at this point we can
|
|
25
14
|
// reliably check if fabric is enabled (the function contains a flag
|
|
26
15
|
// to make sure it's called only once)
|
|
27
|
-
maybeInitializeFabric();
|
|
16
|
+
maybeInitializeFabric();
|
|
28
17
|
|
|
29
18
|
return (
|
|
30
19
|
<GestureHandlerRootViewContext.Provider value>
|
|
31
|
-
<
|
|
20
|
+
<RNGestureHandlerRootViewNativeComponent {...props} />
|
|
32
21
|
</GestureHandlerRootViewContext.Provider>
|
|
33
22
|
);
|
|
34
23
|
}
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from 'react-native';
|
|
10
10
|
// @ts-ignore - it isn't typed by TS & don't have definitelyTyped types
|
|
11
11
|
import deepEqual from 'lodash/isEqual';
|
|
12
|
-
import
|
|
12
|
+
import RNGestureHandlerModule from '../RNGestureHandlerModule'; // RNGH: patch
|
|
13
13
|
import type RNGestureHandlerModuleWeb from 'react-native-gesture-handler/src/RNGestureHandlerModule.web';
|
|
14
14
|
import { State } from 'react-native-gesture-handler/src/State';
|
|
15
15
|
import {
|
|
@@ -24,9 +24,8 @@ import {
|
|
|
24
24
|
GestureEvent,
|
|
25
25
|
HandlerStateChangeEvent,
|
|
26
26
|
findNodeHandle,
|
|
27
|
-
|
|
28
|
-
} from
|
|
29
|
-
import { scheduleFlushOperations } from "../handlers/gestureHandlerCommon" // RNGH: patch
|
|
27
|
+
scheduleFlushOperations,
|
|
28
|
+
} from "react-native-gesture-handler/src/handlers/gestureHandlerCommon";
|
|
30
29
|
import { ValueOf } from 'react-native-gesture-handler/src/typeUtils';
|
|
31
30
|
import { isFabric, isJestEnv, tagMessage } from 'react-native-gesture-handler/src/utils';
|
|
32
31
|
import { ActionType } from 'react-native-gesture-handler/src/ActionType';
|
|
@@ -57,7 +56,7 @@ const customGHEventsConfig = {
|
|
|
57
56
|
// Without this piece of code below, you'll get the following JS error:
|
|
58
57
|
// Unsupported top level event type "topOnGestureHandlerEvent" dispatched
|
|
59
58
|
...(isFabric() &&
|
|
60
|
-
Platform.OS === '
|
|
59
|
+
Platform.OS as string === 'harmony' && // RNGH: patch
|
|
61
60
|
customGHEventsConfigFabricAndroid),
|
|
62
61
|
};
|
|
63
62
|
|
package/src/index.ts
CHANGED
|
@@ -4,7 +4,7 @@ declare const global: {
|
|
|
4
4
|
|
|
5
5
|
global.isFormsStackingContext = () => true; // TODO: add using JSI
|
|
6
6
|
|
|
7
|
-
import { initialize } from '
|
|
7
|
+
import { initialize } from 'react-native-gesture-handler/src/init';
|
|
8
8
|
|
|
9
9
|
// export { Directions } from './Directions';
|
|
10
10
|
export { State } from 'react-native-gesture-handler/src/State';
|
|
@@ -56,10 +56,10 @@ export type { GestureType } from 'react-native-gesture-handler/src/handlers/gest
|
|
|
56
56
|
// FlingGestureHandlerEventPayload,
|
|
57
57
|
// FlingGestureHandlerProps,
|
|
58
58
|
// } from './handlers/FlingGestureHandler';
|
|
59
|
-
export { TapGestureHandler } from '
|
|
59
|
+
export { TapGestureHandler } from 'react-native-gesture-handler/src/handlers/TapGestureHandler';
|
|
60
60
|
// export { ForceTouchGestureHandler } from './handlers/ForceTouchGestureHandler';
|
|
61
61
|
// export { LongPressGestureHandler } from './handlers/LongPressGestureHandler';
|
|
62
|
-
export { PanGestureHandler } from '
|
|
62
|
+
export { PanGestureHandler } from 'react-native-gesture-handler/src/handlers/PanGestureHandler';
|
|
63
63
|
// export { PinchGestureHandler } from './handlers/PinchGestureHandler';
|
|
64
64
|
// export { RotationGestureHandler } from './handlers/RotationGestureHandler';
|
|
65
65
|
// export { FlingGestureHandler } from './handlers/FlingGestureHandler';
|
|
@@ -68,7 +68,7 @@ export { PanGestureHandler } from './handlers/PanGestureHandler';
|
|
|
68
68
|
// NativeViewGestureHandlerPayload,
|
|
69
69
|
// NativeViewGestureHandlerProps,
|
|
70
70
|
// } from './handlers/NativeViewGestureHandler';
|
|
71
|
-
export { GestureDetector } from '
|
|
71
|
+
export { GestureDetector } from 'react-native-gesture-handler/src/handlers/gestures/GestureDetector';
|
|
72
72
|
export { GestureObjects as Gesture } from 'react-native-gesture-handler/src/handlers/gestures/gestureObjects';
|
|
73
73
|
// export type { TapGestureType as TapGesture } from './handlers/gestures/tapGesture';
|
|
74
74
|
// export type { PanGestureType as PanGesture } from './handlers/gestures/panGesture';
|
|
@@ -105,15 +105,15 @@ export {
|
|
|
105
105
|
// TouchableNativeFeedback,
|
|
106
106
|
TouchableOpacity,
|
|
107
107
|
TouchableWithoutFeedback,
|
|
108
|
-
} from '
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
108
|
+
} from 'react-native-gesture-handler/src/components/touchables';
|
|
109
|
+
export {
|
|
110
|
+
ScrollView,
|
|
111
|
+
Switch,
|
|
112
|
+
TextInput,
|
|
113
|
+
DrawerLayoutAndroid,
|
|
114
|
+
FlatList,
|
|
115
|
+
RefreshControl,
|
|
116
|
+
} from 'react-native-gesture-handler/src/components/GestureComponents';
|
|
117
117
|
// export type {
|
|
118
118
|
// //events
|
|
119
119
|
// GestureHandlerGestureEvent,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { TurboModuleRegistry, TurboModule } from 'react-native';
|
|
2
|
+
import { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
|
|
4
|
+
export interface Spec extends TurboModule {
|
|
5
|
+
handleSetJSResponder: (tag: Int32, blockNativeResponder: boolean) => void;
|
|
6
|
+
handleClearJSResponder: () => void;
|
|
7
|
+
createGestureHandler: (
|
|
8
|
+
handlerName: string,
|
|
9
|
+
handlerTag: Int32,
|
|
10
|
+
// Record<> is not supported by codegen
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
12
|
+
config: Object
|
|
13
|
+
) => void;
|
|
14
|
+
attachGestureHandler: (
|
|
15
|
+
handlerTag: Int32,
|
|
16
|
+
newView: Int32,
|
|
17
|
+
actionType: Int32
|
|
18
|
+
) => void;
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
20
|
+
updateGestureHandler: (handlerTag: Int32, newConfig: Object) => void;
|
|
21
|
+
dropGestureHandler: (handlerTag: Int32) => void;
|
|
22
|
+
install: () => boolean;
|
|
23
|
+
flushOperations: () => void;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export default TurboModuleRegistry.getEnforcing<Spec>('RNGestureHandlerModule');
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
2
|
+
import type {
|
|
3
|
+
Int32,
|
|
4
|
+
WithDefault,
|
|
5
|
+
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
6
|
+
import type { ViewProps, ColorValue } from 'react-native';
|
|
7
|
+
|
|
8
|
+
interface NativeProps extends ViewProps {
|
|
9
|
+
exclusive?: WithDefault<boolean, true>;
|
|
10
|
+
foreground?: boolean;
|
|
11
|
+
borderless?: boolean;
|
|
12
|
+
enabled?: WithDefault<boolean, true>;
|
|
13
|
+
rippleColor?: ColorValue;
|
|
14
|
+
rippleRadius?: Int32;
|
|
15
|
+
touchSoundDisabled?: WithDefault<boolean, false>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export default codegenNativeComponent<NativeProps>('RNGestureHandlerButton');
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
|
|
4
|
+
interface NativeProps extends ViewProps {}
|
|
5
|
+
|
|
6
|
+
export default codegenNativeComponent<NativeProps>('RNGestureHandlerRootView');
|
package/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# react-native-harmony-gesture-handler
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2019 react-native-community
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<configuration>
|
|
3
|
-
<oatconfig>
|
|
4
|
-
<licensefile>LICENSE</licensefile>
|
|
5
|
-
<filefilterlist>
|
|
6
|
-
<filefilter name="copyrightPolicyFilter" desc="Filters for compatibility,license header policies">
|
|
7
|
-
<filteritem type="filename" name="hvigorfile.ts" desc="hvigor构建脚本,DevEco Studio自动生成,不需要添加版权头"/>
|
|
8
|
-
<filteritem type="filename" name="*.json5" desc="hvigor工程配置文件,DevEco Studio自动生成,不需要添加版权头"/>
|
|
9
|
-
<filteritem type="filename" name="*.proto" desc="资源文件,不需要添加版权头"/>
|
|
10
|
-
<filteritem type="filename" name="*.json" desc="资源文件,不需要添加版权头"/>
|
|
11
|
-
<filteritem type="filename" name="*.test.ts" desc="测试文件,不需要添加版权头"/>
|
|
12
|
-
<filteritem type="filename" name="index.ets" desc="入口文件,不需要添加版权头"/>
|
|
13
|
-
<filteritem type="filename" name="ts.ts" desc="出口文件,不需要添加版权头"/>
|
|
14
|
-
<filteritem type="filepath" name="hvigorw" desc="工程模板,不修改版权头,以防有修改版权风险"/>
|
|
15
|
-
<filteritem type="filepath" name="hvigorw.bat" desc="工程模板,不修改版权头,以防有修改版权风险"/>
|
|
16
|
-
<filteritem type="filepath" name="hvigor/hvigor-wrapper.js" desc="工程模板,不修改版权头,以防有修改版权风险"/>
|
|
17
|
-
<filteritem type="filename" name="LICENSE" desc="工程文件,不修改版权头"/>
|
|
18
|
-
</filefilter>
|
|
19
|
-
<filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies">
|
|
20
|
-
<filteritem type="filename" name="hvigorfile.ts" desc="hvigor构建脚本,DevEco Studio自动生成,不需要添加许可证头"/>
|
|
21
|
-
<filteritem type="filename" name="*.json5" desc="hvigor工程配置文件,DevEco Studio自动生成,不需要添加许可证头"/>
|
|
22
|
-
<filteritem type="filename" name="LICENSE" desc="原三方库证书文件无需更改,因此添加过滤"/>
|
|
23
|
-
<filteritem type="filename" name="*.proto" desc="资源文件,不需要添加许可证头"/>
|
|
24
|
-
<filteritem type="filename" name="*.json" desc="资源文件,不需要添加许可证头"/>
|
|
25
|
-
<filteritem type="filename" name="*.test.ts" desc="测试文件,不需要添加版权头"/>
|
|
26
|
-
<filteritem type="filename" name="index.ets" desc="入口文件,不需要添加版权头"/>
|
|
27
|
-
<filteritem type="filename" name="ts.ts" desc="出口文件,不需要添加版权头"/>
|
|
28
|
-
<filteritem type="filepath" name="hvigorw" desc="工程模板,不修改版权头,以防有修改版权风险"/>
|
|
29
|
-
<filteritem type="filepath" name="hvigorw.bat" desc="工程模板,不修改版权头,以防有修改版权风险"/>
|
|
30
|
-
<filteritem type="filepath" name="hvigor/hvigor-wrapper.js" desc="工程模板,不修改版权头,以防有修改版权风险"/>
|
|
31
|
-
</filefilter>
|
|
32
|
-
<filefilter name="binaryFileTypePolicyFilter" desc="Filters for resources files policies">
|
|
33
|
-
<filteritem type="filename" name="icon.png" desc="应用图标"/>
|
|
34
|
-
<filteritem type="filename" name="app_icon.png" desc="应用图标"/>
|
|
35
|
-
<filteritem type="filename" name="warn.png" desc="页面展示图标"/>
|
|
36
|
-
</filefilter>
|
|
37
|
-
</filefilterlist>
|
|
38
|
-
<policylist>
|
|
39
|
-
<policy name="projectPolicy" desc="">
|
|
40
|
-
<policyitem type="license" name="MIT" path=".*" desc="license under the MIT"/>
|
|
41
|
-
</policy>
|
|
42
|
-
</policylist>
|
|
43
|
-
</oatconfig>
|
|
44
|
-
</configuration>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"Name": "react-native-gesture-handler",
|
|
4
|
-
"License": "MIT License",
|
|
5
|
-
"License File":"https://github.com/software-mansion/react-native-gesture-handler/blob/main/LICENSE",
|
|
6
|
-
"Version Number": "2.12.6-0.0.1",
|
|
7
|
-
"Owner" : ""
|
|
8
|
-
"Upstream URL": "https://github.com/software-mansion/react-native-gesture-handler",
|
|
9
|
-
"Description": "React Native Gesture Handler provides native-driven gesture management APIs for building best possible touch-based experiences in React Native."
|
|
10
|
-
}
|
|
11
|
-
]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# react-native-harmony-gesture-handler
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.BorderlessButton = exports.BaseButton = void 0;
|
|
7
|
-
Object.defineProperty(exports, "PureNativeButton", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () {
|
|
10
|
-
return _GestureHandlerButton.default;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
exports.RectButton = exports.RawButton = void 0;
|
|
14
|
-
var React = _interopRequireWildcard(require("react"));
|
|
15
|
-
var _reactNative = require("react-native");
|
|
16
|
-
var _createNativeWrapper = _interopRequireDefault(require("../handlers/createNativeWrapper"));
|
|
17
|
-
var _GestureHandlerButton = _interopRequireDefault(require("./GestureHandlerButton"));
|
|
18
|
-
var _State = require("react-native-gesture-handler/src/State");
|
|
19
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
21
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
|
-
const RawButton = exports.RawButton = (0, _createNativeWrapper.default)(_GestureHandlerButton.default, {
|
|
24
|
-
shouldCancelWhenOutside: false,
|
|
25
|
-
shouldActivateOnStart: false
|
|
26
|
-
});
|
|
27
|
-
class BaseButton extends React.Component {
|
|
28
|
-
static defaultProps = {
|
|
29
|
-
delayLongPress: 600
|
|
30
|
-
};
|
|
31
|
-
constructor(props) {
|
|
32
|
-
super(props);
|
|
33
|
-
this.lastActive = false;
|
|
34
|
-
this.longPressDetected = false;
|
|
35
|
-
}
|
|
36
|
-
handleEvent = ({
|
|
37
|
-
nativeEvent
|
|
38
|
-
}) => {
|
|
39
|
-
const {
|
|
40
|
-
state,
|
|
41
|
-
oldState,
|
|
42
|
-
pointerInside
|
|
43
|
-
} = nativeEvent;
|
|
44
|
-
const active = pointerInside && state === _State.State.ACTIVE;
|
|
45
|
-
if (active !== this.lastActive && this.props.onActiveStateChange) {
|
|
46
|
-
this.props.onActiveStateChange(active);
|
|
47
|
-
}
|
|
48
|
-
if (!this.longPressDetected && oldState === _State.State.ACTIVE && state !== _State.State.CANCELLED && this.lastActive && this.props.onPress) {
|
|
49
|
-
this.props.onPress(active);
|
|
50
|
-
}
|
|
51
|
-
if (!this.lastActive &&
|
|
52
|
-
// NativeViewGestureHandler sends different events based on platform
|
|
53
|
-
state === (_reactNative.Platform.OS !== 'android' ? _State.State.ACTIVE : _State.State.BEGAN) && pointerInside) {
|
|
54
|
-
this.longPressDetected = false;
|
|
55
|
-
if (this.props.onLongPress) {
|
|
56
|
-
this.longPressTimeout = setTimeout(this.onLongPress, this.props.delayLongPress);
|
|
57
|
-
}
|
|
58
|
-
} else if (
|
|
59
|
-
// cancel longpress timeout if it's set and the finger moved out of the view
|
|
60
|
-
state === _State.State.ACTIVE && !pointerInside && this.longPressTimeout !== undefined) {
|
|
61
|
-
clearTimeout(this.longPressTimeout);
|
|
62
|
-
this.longPressTimeout = undefined;
|
|
63
|
-
} else if (
|
|
64
|
-
// cancel longpress timeout if it's set and the gesture has finished
|
|
65
|
-
this.longPressTimeout !== undefined && (state === _State.State.END || state === _State.State.CANCELLED || state === _State.State.FAILED)) {
|
|
66
|
-
clearTimeout(this.longPressTimeout);
|
|
67
|
-
this.longPressTimeout = undefined;
|
|
68
|
-
}
|
|
69
|
-
this.lastActive = active;
|
|
70
|
-
};
|
|
71
|
-
onLongPress = () => {
|
|
72
|
-
var _this$props$onLongPre, _this$props;
|
|
73
|
-
this.longPressDetected = true;
|
|
74
|
-
(_this$props$onLongPre = (_this$props = this.props).onLongPress) === null || _this$props$onLongPre === void 0 || _this$props$onLongPre.call(_this$props);
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
// Normally, the parent would execute it's handler first, then forward the
|
|
78
|
-
// event to listeners. However, here our handler is virtually only forwarding
|
|
79
|
-
// events to listeners, so we reverse the order to keep the proper order of
|
|
80
|
-
// the callbacks (from "raw" ones to "processed").
|
|
81
|
-
onHandlerStateChange = e => {
|
|
82
|
-
var _this$props$onHandler, _this$props2;
|
|
83
|
-
(_this$props$onHandler = (_this$props2 = this.props).onHandlerStateChange) === null || _this$props$onHandler === void 0 || _this$props$onHandler.call(_this$props2, e);
|
|
84
|
-
this.handleEvent(e);
|
|
85
|
-
};
|
|
86
|
-
onGestureEvent = e => {
|
|
87
|
-
var _this$props$onGesture, _this$props3;
|
|
88
|
-
(_this$props$onGesture = (_this$props3 = this.props).onGestureEvent) === null || _this$props$onGesture === void 0 || _this$props$onGesture.call(_this$props3, e);
|
|
89
|
-
this.handleEvent(e); // TODO: maybe it is not correct
|
|
90
|
-
};
|
|
91
|
-
render() {
|
|
92
|
-
const {
|
|
93
|
-
rippleColor,
|
|
94
|
-
...rest
|
|
95
|
-
} = this.props;
|
|
96
|
-
return /*#__PURE__*/React.createElement(RawButton, _extends({
|
|
97
|
-
rippleColor: (0, _reactNative.processColor)(rippleColor)
|
|
98
|
-
}, rest, {
|
|
99
|
-
onGestureEvent: this.onGestureEvent,
|
|
100
|
-
onHandlerStateChange: this.onHandlerStateChange
|
|
101
|
-
}));
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
exports.BaseButton = BaseButton;
|
|
105
|
-
const AnimatedBaseButton = _reactNative.Animated.createAnimatedComponent(BaseButton);
|
|
106
|
-
const btnStyles = _reactNative.StyleSheet.create({
|
|
107
|
-
underlay: {
|
|
108
|
-
position: 'absolute',
|
|
109
|
-
left: 0,
|
|
110
|
-
right: 0,
|
|
111
|
-
bottom: 0,
|
|
112
|
-
top: 0
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
class RectButton extends React.Component {
|
|
116
|
-
static defaultProps = {
|
|
117
|
-
activeOpacity: 0.105,
|
|
118
|
-
underlayColor: 'black'
|
|
119
|
-
};
|
|
120
|
-
constructor(props) {
|
|
121
|
-
super(props);
|
|
122
|
-
this.opacity = new _reactNative.Animated.Value(0);
|
|
123
|
-
}
|
|
124
|
-
onActiveStateChange = active => {
|
|
125
|
-
var _this$props$onActiveS, _this$props4;
|
|
126
|
-
if (_reactNative.Platform.OS !== 'android') {
|
|
127
|
-
this.opacity.setValue(active ? this.props.activeOpacity : 0);
|
|
128
|
-
}
|
|
129
|
-
(_this$props$onActiveS = (_this$props4 = this.props).onActiveStateChange) === null || _this$props$onActiveS === void 0 || _this$props$onActiveS.call(_this$props4, active);
|
|
130
|
-
};
|
|
131
|
-
render() {
|
|
132
|
-
const {
|
|
133
|
-
children,
|
|
134
|
-
style,
|
|
135
|
-
...rest
|
|
136
|
-
} = this.props;
|
|
137
|
-
const resolvedStyle = _reactNative.StyleSheet.flatten(style ?? {});
|
|
138
|
-
return /*#__PURE__*/React.createElement(BaseButton, _extends({}, rest, {
|
|
139
|
-
style: resolvedStyle,
|
|
140
|
-
onActiveStateChange: this.onActiveStateChange
|
|
141
|
-
}), /*#__PURE__*/React.createElement(_reactNative.Animated.View, {
|
|
142
|
-
style: [btnStyles.underlay, {
|
|
143
|
-
opacity: this.opacity,
|
|
144
|
-
backgroundColor: this.props.underlayColor,
|
|
145
|
-
borderRadius: resolvedStyle.borderRadius,
|
|
146
|
-
borderTopLeftRadius: resolvedStyle.borderTopLeftRadius,
|
|
147
|
-
borderTopRightRadius: resolvedStyle.borderTopRightRadius,
|
|
148
|
-
borderBottomLeftRadius: resolvedStyle.borderBottomLeftRadius,
|
|
149
|
-
borderBottomRightRadius: resolvedStyle.borderBottomRightRadius
|
|
150
|
-
}]
|
|
151
|
-
}), children);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
exports.RectButton = RectButton;
|
|
155
|
-
class BorderlessButton extends React.Component {
|
|
156
|
-
static defaultProps = {
|
|
157
|
-
activeOpacity: 0.3,
|
|
158
|
-
borderless: true
|
|
159
|
-
};
|
|
160
|
-
constructor(props) {
|
|
161
|
-
super(props);
|
|
162
|
-
this.opacity = new _reactNative.Animated.Value(1);
|
|
163
|
-
}
|
|
164
|
-
onActiveStateChange = active => {
|
|
165
|
-
var _this$props$onActiveS2, _this$props5;
|
|
166
|
-
if (_reactNative.Platform.OS !== 'android') {
|
|
167
|
-
this.opacity.setValue(active ? this.props.activeOpacity : 1);
|
|
168
|
-
}
|
|
169
|
-
(_this$props$onActiveS2 = (_this$props5 = this.props).onActiveStateChange) === null || _this$props$onActiveS2 === void 0 || _this$props$onActiveS2.call(_this$props5, active);
|
|
170
|
-
};
|
|
171
|
-
render() {
|
|
172
|
-
const {
|
|
173
|
-
children,
|
|
174
|
-
style,
|
|
175
|
-
...rest
|
|
176
|
-
} = this.props;
|
|
177
|
-
return /*#__PURE__*/React.createElement(AnimatedBaseButton, _extends({}, rest, {
|
|
178
|
-
onActiveStateChange: this.onActiveStateChange,
|
|
179
|
-
style: [style, _reactNative.Platform.OS === 'ios' && {
|
|
180
|
-
opacity: this.opacity
|
|
181
|
-
}]
|
|
182
|
-
}), children);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
exports.BorderlessButton = BorderlessButton;
|
|
186
|
-
//# sourceMappingURL=GestureButtons.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_createNativeWrapper","_interopRequireDefault","_GestureHandlerButton","_State","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_extends","assign","bind","target","arguments","length","source","key","apply","RawButton","exports","createNativeWrapper","GestureHandlerButton","shouldCancelWhenOutside","shouldActivateOnStart","BaseButton","Component","defaultProps","delayLongPress","constructor","props","lastActive","longPressDetected","handleEvent","nativeEvent","state","oldState","pointerInside","active","State","ACTIVE","onActiveStateChange","CANCELLED","onPress","Platform","OS","BEGAN","onLongPress","longPressTimeout","setTimeout","undefined","clearTimeout","END","FAILED","_this$props$onLongPre","_this$props","onHandlerStateChange","_this$props$onHandler","_this$props2","onGestureEvent","_this$props$onGesture","_this$props3","render","rippleColor","rest","createElement","processColor","AnimatedBaseButton","Animated","createAnimatedComponent","btnStyles","StyleSheet","create","underlay","position","left","right","bottom","top","RectButton","activeOpacity","underlayColor","opacity","Value","_this$props$onActiveS","_this$props4","setValue","children","style","resolvedStyle","flatten","View","backgroundColor","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","BorderlessButton","borderless","_this$props$onActiveS2","_this$props5"],"sourceRoot":"..\\..\\..\\src","sources":["components/GestureButtons.tsx"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,oBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,qBAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AAA+D,SAAAG,uBAAAG,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,SAAAX,wBAAAW,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,CAAA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,EAAE;EACd,CAAC;EAIDtE,WAAWA,CAACC,KAA4B,EAAE;IACxC,KAAK,CAACA,KAAK,CAAC;IACZ,IAAI,CAACoD,OAAO,GAAG,IAAId,qBAAQ,CAACe,KAAK,CAAC,CAAC,CAAC;EACtC;EAEQ1C,mBAAmB,GAAIH,MAAe,IAAK;IAAA,IAAA8D,sBAAA,EAAAC,YAAA;IACjD,IAAIzD,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAAE;MAC7B,IAAI,CAACqC,OAAO,CAACI,QAAQ,CAAChD,MAAM,GAAG,IAAI,CAACR,KAAK,CAACkD,aAAa,GAAI,CAAC,CAAC;IAC/D;IAEA,CAAAoB,sBAAA,IAAAC,YAAA,OAAI,CAACvE,KAAK,EAACW,mBAAmB,cAAA2D,sBAAA,eAA9BA,sBAAA,CAAA7F,IAAA,CAAA8F,YAAA,EAAiC/D,MAAM,CAAC;EAC1C,CAAC;EAEDwB,MAAMA,CAAA,EAAG;IACP,MAAM;MAAEyB,QAAQ;MAAEC,KAAK;MAAE,GAAGxB;IAAK,CAAC,GAAG,IAAI,CAAClC,KAAK;IAE/C,oBACElD,KAAA,CAAAqF,aAAA,CAACE,kBAAkB,EAAAzD,QAAA,KACbsD,IAAI;MACRvB,mBAAmB,EAAE,IAAI,CAACA,mBAAoB;MAC9C+C,KAAK,EAAE,CAACA,KAAK,EAAE5C,qBAAQ,CAACC,EAAE,KAAK,KAAK,IAAI;QAAEqC,OAAO,EAAE,IAAI,CAACA;MAAQ,CAAC;IAAE,IAElEK,QACiB,CAAC;EAEzB;AACF;AAACnE,OAAA,CAAA8E,gBAAA,GAAAA,gBAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _RNGestureHandlerButton = require("./RNGestureHandlerButton");
|
|
8
|
-
var _default = exports.default = _RNGestureHandlerButton.RNGestureHandlerButton;
|
|
9
|
-
//# sourceMappingURL=GestureHandlerButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_RNGestureHandlerButton","require","_default","exports","default","RNGestureHandlerButton"],"sourceRoot":"..\\..\\..\\src","sources":["components/GestureHandlerButton.tsx"],"mappings":";;;;;;AAEA,IAAAA,uBAAA,GAAAC,OAAA;AAAkE,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEnDC,8CAAsB"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.RNGestureHandlerButton = void 0;
|
|
7
|
-
var _reactNativeHarmony = require("react-native-harmony");
|
|
8
|
-
const RNGestureHandlerButton = exports.RNGestureHandlerButton = (0, _reactNativeHarmony.registerViewConfig)('RNGestureHandlerButton', () => ({
|
|
9
|
-
uiViewClassName: 'RNGestureHandlerButton',
|
|
10
|
-
bubblingEventTypes: {},
|
|
11
|
-
directEventTypes: {},
|
|
12
|
-
validAttributes: {
|
|
13
|
-
..._reactNativeHarmony.ReactNativeViewAttributes.UIView,
|
|
14
|
-
exclusive: true,
|
|
15
|
-
foreground: true,
|
|
16
|
-
borderless: true,
|
|
17
|
-
enabled: true,
|
|
18
|
-
rippleColor: true,
|
|
19
|
-
rippleRadius: true,
|
|
20
|
-
touchSoundDisabled: true
|
|
21
|
-
}
|
|
22
|
-
}));
|
|
23
|
-
//# sourceMappingURL=RNGestureHandlerButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeHarmony","require","RNGestureHandlerButton","exports","registerViewConfig","uiViewClassName","bubblingEventTypes","directEventTypes","validAttributes","ReactNativeViewAttributes","UIView","exclusive","foreground","borderless","enabled","rippleColor","rippleRadius","touchSoundDisabled"],"sourceRoot":"..\\..\\..\\src","sources":["components/RNGestureHandlerButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAKO,MAAMC,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,GAAG,IAAAE,sCAAkB,EACtD,wBAAwB,EACxB,OAAO;EACLC,eAAe,EAAE,wBAAwB;EACzCC,kBAAkB,EAAE,CAAC,CAAC;EACtBC,gBAAgB,EAAE,CAAC,CAAC;EACpBC,eAAe,EAAE;IACf,GAAGC,6CAAyB,CAACC,MAAM;IACnCC,SAAS,EAAE,IAAI;IACfC,UAAU,EAAE,IAAI;IAChBC,UAAU,EAAE,IAAI;IAChBC,OAAO,EAAE,IAAI;IACbC,WAAW,EAAE,IAAI;IACjBC,YAAY,EAAE,IAAI;IAClBC,kBAAkB,EAAE;EACtB;AACF,CAAC,CACH,CAAC"}
|