@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
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["codegenNativeComponent"],"sourceRoot":"
|
1
|
+
{"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../../src","sources":["specs/RNGestureHandlerButtonNativeComponent.ts"],"mappings":"AAAA,OAAOA,sBAAsB,MAAM,yDAAyD;AAiB5F,eAAeA,sBAAsB,CAAc,wBAAwB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["codegenNativeComponent"],"sourceRoot":"
|
1
|
+
{"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../../src","sources":["specs/RNGestureHandlerRootViewNativeComponent.ts"],"mappings":"AAAA,OAAOA,sBAAsB,MAAM,yDAAyD;AAK5F,eAAeA,sBAAsB,CAAc,0BAA0B,CAAC"}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
declare const RNGestureHandlerModule: import("../src/specs/NativeRNGestureHandlerModule").Spec;
|
2
|
-
export default RNGestureHandlerModule;
|
1
|
+
declare const RNGestureHandlerModule: import("../src/specs/NativeRNGestureHandlerModule").Spec;
|
2
|
+
export default RNGestureHandlerModule;
|
3
3
|
//# sourceMappingURL=RNGestureHandlerModule.d.ts.map
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import { PropsWithChildren } from 'react';
|
3
|
-
import { ViewProps } from 'react-native';
|
4
|
-
export interface GestureHandlerRootViewProps extends PropsWithChildren<ViewProps> {
|
5
|
-
}
|
6
|
-
export default function GestureHandlerRootView(props: GestureHandlerRootViewProps): React.JSX.Element;
|
1
|
+
import * as React from 'react';
|
2
|
+
import { PropsWithChildren } from 'react';
|
3
|
+
import { ViewProps } from 'react-native';
|
4
|
+
export interface GestureHandlerRootViewProps extends PropsWithChildren<ViewProps> {
|
5
|
+
}
|
6
|
+
export default function GestureHandlerRootView(props: GestureHandlerRootViewProps): React.JSX.Element;
|
7
7
|
//# sourceMappingURL=GestureHandlerRootView.d.ts.map
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import { BaseGestureHandlerProps } from "react-native-gesture-handler/src/handlers/gestureHandlerCommon";
|
3
|
-
declare type CreateHandlerArgs<HandlerPropsT extends Record<string, unknown>> = Readonly<{
|
4
|
-
name: string;
|
5
|
-
allowedProps: Readonly<Extract<keyof HandlerPropsT, string>[]>;
|
6
|
-
config: Readonly<Record<string, unknown>>;
|
7
|
-
transformProps?: (props: HandlerPropsT) => HandlerPropsT;
|
8
|
-
customNativeProps?: Readonly<string[]>;
|
9
|
-
}>;
|
10
|
-
export default function createHandler<T extends BaseGestureHandlerProps<U>, U extends Record<string, unknown>>({ name, allowedProps, config, transformProps, customNativeProps, }: CreateHandlerArgs<T>): React.ComponentType<T & React.RefAttributes<any>>;
|
11
|
-
export {};
|
1
|
+
import * as React from 'react';
|
2
|
+
import { BaseGestureHandlerProps } from "react-native-gesture-handler/src/handlers/gestureHandlerCommon";
|
3
|
+
declare type CreateHandlerArgs<HandlerPropsT extends Record<string, unknown>> = Readonly<{
|
4
|
+
name: string;
|
5
|
+
allowedProps: Readonly<Extract<keyof HandlerPropsT, string>[]>;
|
6
|
+
config: Readonly<Record<string, unknown>>;
|
7
|
+
transformProps?: (props: HandlerPropsT) => HandlerPropsT;
|
8
|
+
customNativeProps?: Readonly<string[]>;
|
9
|
+
}>;
|
10
|
+
export default function createHandler<T extends BaseGestureHandlerProps<U>, U extends Record<string, unknown>>({ name, allowedProps, config, transformProps, customNativeProps, }: CreateHandlerArgs<T>): React.ComponentType<T & React.RefAttributes<any>>;
|
11
|
+
export {};
|
12
12
|
//# sourceMappingURL=createHandler.d.ts.map
|
@@ -1,43 +1,48 @@
|
|
1
|
-
export { Directions } from 'react-native-gesture-handler/src/Directions';
|
2
|
-
export { State } from 'react-native-gesture-handler/src/State';
|
3
|
-
export { default as gestureHandlerRootHOC } from 'react-native-gesture-handler/src/components/gestureHandlerRootHOC';
|
4
|
-
export { default as GestureHandlerRootView } from './components/GestureHandlerRootView';
|
5
|
-
export type { GestureEvent, HandlerStateChangeEvent, GestureEventPayload, HandlerStateChangeEventPayload, GestureTouchEvent, TouchData, GestureUpdateEvent, GestureStateChangeEvent, } from 'react-native-gesture-handler/src/handlers/gestureHandlerCommon';
|
6
|
-
export type { GestureType } from 'react-native-gesture-handler/src/handlers/gestures/gesture';
|
7
|
-
export type { TapGestureHandlerEventPayload, TapGestureHandlerProps, } from 'react-native-gesture-handler/src/handlers/TapGestureHandler';
|
8
|
-
export type { ForceTouchGestureHandlerEventPayload, ForceTouchGestureHandlerProps, } from 'react-native-gesture-handler/src/handlers/ForceTouchGestureHandler';
|
9
|
-
export type { ForceTouchGestureChangeEventPayload } from 'react-native-gesture-handler/src/handlers/gestures/forceTouchGesture';
|
10
|
-
export type { LongPressGestureHandlerEventPayload, LongPressGestureHandlerProps, } from 'react-native-gesture-handler/src/handlers/LongPressGestureHandler';
|
11
|
-
export type { PanGestureHandlerEventPayload, PanGestureHandlerProps, } from 'react-native-gesture-handler/src/handlers/PanGestureHandler';
|
12
|
-
export type { PanGestureChangeEventPayload } from 'react-native-gesture-handler/src/handlers/gestures/panGesture';
|
13
|
-
export type { PinchGestureHandlerEventPayload, PinchGestureHandlerProps, } from 'react-native-gesture-handler/src/handlers/PinchGestureHandler';
|
14
|
-
export type { PinchGestureChangeEventPayload } from 'react-native-gesture-handler/src/handlers/gestures/pinchGesture';
|
15
|
-
export type { RotationGestureHandlerEventPayload, RotationGestureHandlerProps, } from 'react-native-gesture-handler/src/handlers/RotationGestureHandler';
|
16
|
-
export type { FlingGestureHandlerEventPayload, FlingGestureHandlerProps, } from 'react-native-gesture-handler/src/handlers/FlingGestureHandler';
|
17
|
-
export { TapGestureHandler } from 'react-native-gesture-handler/src/handlers/TapGestureHandler';
|
18
|
-
export {
|
19
|
-
export {
|
20
|
-
export
|
21
|
-
export {
|
22
|
-
export {
|
23
|
-
export
|
24
|
-
export type {
|
25
|
-
export
|
26
|
-
export
|
27
|
-
export type {
|
28
|
-
export type {
|
29
|
-
export type {
|
30
|
-
export type {
|
31
|
-
export type {
|
32
|
-
export type {
|
33
|
-
export type {
|
34
|
-
export type {
|
35
|
-
export {
|
36
|
-
export {
|
37
|
-
export {
|
38
|
-
export
|
39
|
-
export {
|
40
|
-
export
|
41
|
-
export {
|
42
|
-
export {
|
1
|
+
export { Directions } from 'react-native-gesture-handler/src/Directions';
|
2
|
+
export { State } from 'react-native-gesture-handler/src/State';
|
3
|
+
export { default as gestureHandlerRootHOC } from 'react-native-gesture-handler/src/components/gestureHandlerRootHOC';
|
4
|
+
export { default as GestureHandlerRootView } from './components/GestureHandlerRootView';
|
5
|
+
export type { GestureEvent, HandlerStateChangeEvent, GestureEventPayload, HandlerStateChangeEventPayload, GestureTouchEvent, TouchData, GestureUpdateEvent, GestureStateChangeEvent, } from 'react-native-gesture-handler/src/handlers/gestureHandlerCommon';
|
6
|
+
export type { GestureType } from 'react-native-gesture-handler/src/handlers/gestures/gesture';
|
7
|
+
export type { TapGestureHandlerEventPayload, TapGestureHandlerProps, } from 'react-native-gesture-handler/src/handlers/TapGestureHandler';
|
8
|
+
export type { ForceTouchGestureHandlerEventPayload, ForceTouchGestureHandlerProps, } from 'react-native-gesture-handler/src/handlers/ForceTouchGestureHandler';
|
9
|
+
export type { ForceTouchGestureChangeEventPayload } from 'react-native-gesture-handler/src/handlers/gestures/forceTouchGesture';
|
10
|
+
export type { LongPressGestureHandlerEventPayload, LongPressGestureHandlerProps, } from 'react-native-gesture-handler/src/handlers/LongPressGestureHandler';
|
11
|
+
export type { PanGestureHandlerEventPayload, PanGestureHandlerProps, } from 'react-native-gesture-handler/src/handlers/PanGestureHandler';
|
12
|
+
export type { PanGestureChangeEventPayload } from 'react-native-gesture-handler/src/handlers/gestures/panGesture';
|
13
|
+
export type { PinchGestureHandlerEventPayload, PinchGestureHandlerProps, } from 'react-native-gesture-handler/src/handlers/PinchGestureHandler';
|
14
|
+
export type { PinchGestureChangeEventPayload } from 'react-native-gesture-handler/src/handlers/gestures/pinchGesture';
|
15
|
+
export type { RotationGestureHandlerEventPayload, RotationGestureHandlerProps, } from 'react-native-gesture-handler/src/handlers/RotationGestureHandler';
|
16
|
+
export type { FlingGestureHandlerEventPayload, FlingGestureHandlerProps, } from 'react-native-gesture-handler/src/handlers/FlingGestureHandler';
|
17
|
+
export { TapGestureHandler } from 'react-native-gesture-handler/src/handlers/TapGestureHandler';
|
18
|
+
export { LongPressGestureHandler } from 'react-native-gesture-handler/src/handlers/LongPressGestureHandler';
|
19
|
+
export { PanGestureHandler } from 'react-native-gesture-handler/src/handlers/PanGestureHandler';
|
20
|
+
export { PinchGestureHandler } from 'react-native-gesture-handler/src/handlers/PinchGestureHandler';
|
21
|
+
export { RotationGestureHandler } from 'react-native-gesture-handler/src/handlers/RotationGestureHandler';
|
22
|
+
export { FlingGestureHandler } from 'react-native-gesture-handler/src/handlers/FlingGestureHandler';
|
23
|
+
export { default as createNativeWrapper } from 'react-native-gesture-handler/src/handlers/createNativeWrapper';
|
24
|
+
export type { NativeViewGestureHandlerPayload, NativeViewGestureHandlerProps, } from 'react-native-gesture-handler/src/handlers/NativeViewGestureHandler';
|
25
|
+
export { GestureDetector } from 'react-native-gesture-handler/src/handlers/gestures/GestureDetector';
|
26
|
+
export { GestureObjects as Gesture } from 'react-native-gesture-handler/src/handlers/gestures/gestureObjects';
|
27
|
+
export type { TapGestureType as TapGesture } from 'react-native-gesture-handler/src/handlers/gestures/tapGesture';
|
28
|
+
export type { PanGestureType as PanGesture } from 'react-native-gesture-handler/src/handlers/gestures/panGesture';
|
29
|
+
export type { FlingGestureType as FlingGesture } from 'react-native-gesture-handler/src/handlers/gestures/flingGesture';
|
30
|
+
export type { LongPressGestureType as LongPressGesture } from 'react-native-gesture-handler/src/handlers/gestures/longPressGesture';
|
31
|
+
export type { PinchGestureType as PinchGesture } from 'react-native-gesture-handler/src/handlers/gestures/pinchGesture';
|
32
|
+
export type { RotationGestureType as RotationGesture } from 'react-native-gesture-handler/src/handlers/gestures/rotationGesture';
|
33
|
+
export type { ForceTouchGestureType as ForceTouchGesture } from 'react-native-gesture-handler/src/handlers/gestures/forceTouchGesture';
|
34
|
+
export type { NativeGestureType as NativeGesture } from 'react-native-gesture-handler/src/handlers/gestures/nativeGesture';
|
35
|
+
export type { ManualGestureType as ManualGesture } from 'react-native-gesture-handler/src/handlers/gestures/manualGesture';
|
36
|
+
export type { ComposedGestureType as ComposedGesture, RaceGestureType as RaceGesture, SimultaneousGestureType as SimultaneousGesture, ExclusiveGestureType as ExclusiveGesture, } from 'react-native-gesture-handler/src/handlers/gestures/gestureComposition';
|
37
|
+
export type { GestureStateManagerType as GestureStateManager } from 'react-native-gesture-handler/src/handlers/gestures/gestureStateManager';
|
38
|
+
export { NativeViewGestureHandler } from 'react-native-gesture-handler/src/handlers/NativeViewGestureHandler';
|
39
|
+
export type { RawButtonProps, BaseButtonProps, RectButtonProps, BorderlessButtonProps, } from 'react-native-gesture-handler/src/components/GestureButtons';
|
40
|
+
export { RawButton, BaseButton, RectButton, BorderlessButton, PureNativeButton, } from 'react-native-gesture-handler/src/components/GestureButtons';
|
41
|
+
export { TouchableHighlight, TouchableNativeFeedback, TouchableOpacity, TouchableWithoutFeedback, } from 'react-native-gesture-handler/src/components/touchables';
|
42
|
+
export { ScrollView, Switch, TextInput, DrawerLayoutAndroid, FlatList, RefreshControl, } from 'react-native-gesture-handler/src/components/GestureComponents';
|
43
|
+
export type { GestureHandlerGestureEvent, GestureHandlerStateChangeEvent, GestureHandlerGestureEventNativeEvent, GestureHandlerStateChangeNativeEvent, NativeViewGestureHandlerGestureEvent, NativeViewGestureHandlerStateChangeEvent, TapGestureHandlerGestureEvent, TapGestureHandlerStateChangeEvent, ForceTouchGestureHandlerGestureEvent, ForceTouchGestureHandlerStateChangeEvent, LongPressGestureHandlerGestureEvent, LongPressGestureHandlerStateChangeEvent, PanGestureHandlerGestureEvent, PanGestureHandlerStateChangeEvent, PinchGestureHandlerGestureEvent, PinchGestureHandlerStateChangeEvent, RotationGestureHandlerGestureEvent, RotationGestureHandlerStateChangeEvent, FlingGestureHandlerGestureEvent, FlingGestureHandlerStateChangeEvent, NativeViewGestureHandlerProperties, TapGestureHandlerProperties, LongPressGestureHandlerProperties, PanGestureHandlerProperties, PinchGestureHandlerProperties, RotationGestureHandlerProperties, FlingGestureHandlerProperties, ForceTouchGestureHandlerProperties, RawButtonProperties, BaseButtonProperties, RectButtonProperties, BorderlessButtonProperties, } from 'react-native-gesture-handler/src/handlers/gestureHandlerTypesCompat';
|
44
|
+
export { default as Swipeable } from 'react-native-gesture-handler/src/components/Swipeable';
|
45
|
+
export type { DrawerLayoutProps, DrawerPosition, DrawerState, DrawerType, DrawerLockMode, DrawerKeyboardDismissMode, } from 'react-native-gesture-handler/src/components/DrawerLayout';
|
46
|
+
export { default as DrawerLayout } from 'react-native-gesture-handler/src/components/DrawerLayout';
|
47
|
+
export { enableExperimentalWebImplementation, enableLegacyWebImplementation, } from 'react-native-gesture-handler/src/EnableNewWebImplementation';
|
43
48
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,mEAAmE,CAAC;AACrH,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AACxF,YAAY,EAEV,YAAY,EACZ,uBAAuB,EAEvB,mBAAmB,EACnB,8BAA8B,EAE9B,iBAAiB,EACjB,SAAS,EAET,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,gEAAgE,CAAC;AACxE,YAAY,EAAE,WAAW,EAAE,MAAM,4DAA4D,CAAC;AAC9F,YAAY,EACV,6BAA6B,EAC7B,sBAAsB,GACvB,MAAM,6DAA6D,CAAC;AACrE,YAAY,EACV,oCAAoC,EACpC,6BAA6B,GAC9B,MAAM,oEAAoE,CAAC;AAC5E,YAAY,EAAE,mCAAmC,EAAE,MAAM,sEAAsE,CAAC;AAChI,YAAY,EACV,mCAAmC,EACnC,4BAA4B,GAC7B,MAAM,mEAAmE,CAAC;AAC3E,YAAY,EACV,6BAA6B,EAC7B,sBAAsB,GACvB,MAAM,6DAA6D,CAAC;AACrE,YAAY,EAAE,4BAA4B,EAAE,M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B,EAC7B,kCAAkC,EAElC,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,qEAAqE,CAAC;AAE7E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,uDAAuD,CAAC;AAC7F,YAAY,EACV,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,UAAU,EACV,cAAc,EACd,yBAAyB,GAC1B,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,0DAA0D,CAAC;AAEnG,OAAO,EACL,mCAAmC,EACnC,6BAA6B,GAC9B,MAAM,6DAA6D,CAAC"}
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import { TurboModule } from 'react-native';
|
2
|
-
import { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
3
|
-
export interface Spec extends TurboModule {
|
4
|
-
handleSetJSResponder: (tag: Int32, blockNativeResponder: boolean) => void;
|
5
|
-
handleClearJSResponder: () => void;
|
6
|
-
createGestureHandler: (handlerName: string, handlerTag: Int32, config: Object) => void;
|
7
|
-
attachGestureHandler: (handlerTag: Int32, newView: Int32, actionType: Int32) => void;
|
8
|
-
updateGestureHandler: (handlerTag: Int32, newConfig: Object) => void;
|
9
|
-
dropGestureHandler: (handlerTag: Int32) => void;
|
10
|
-
install: () => boolean;
|
11
|
-
flushOperations: () => void;
|
12
|
-
}
|
13
|
-
declare const _default: Spec;
|
14
|
-
export default _default;
|
1
|
+
import { TurboModule } from 'react-native';
|
2
|
+
import { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
3
|
+
export interface Spec extends TurboModule {
|
4
|
+
handleSetJSResponder: (tag: Int32, blockNativeResponder: boolean) => void;
|
5
|
+
handleClearJSResponder: () => void;
|
6
|
+
createGestureHandler: (handlerName: string, handlerTag: Int32, config: Object) => void;
|
7
|
+
attachGestureHandler: (handlerTag: Int32, newView: Int32, actionType: Int32) => void;
|
8
|
+
updateGestureHandler: (handlerTag: Int32, newConfig: Object) => void;
|
9
|
+
dropGestureHandler: (handlerTag: Int32) => void;
|
10
|
+
install: () => boolean;
|
11
|
+
flushOperations: () => void;
|
12
|
+
}
|
13
|
+
declare const _default: Spec;
|
14
|
+
export default _default;
|
15
15
|
//# sourceMappingURL=NativeRNGestureHandlerModule.d.ts.map
|
@@ -1,15 +1,15 @@
|
|
1
|
-
/// <reference types="react-native/types/modules/codegen" />
|
2
|
-
import type { Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
|
3
|
-
import type { ViewProps, ColorValue } from 'react-native';
|
4
|
-
interface NativeProps extends ViewProps {
|
5
|
-
exclusive?: WithDefault<boolean, true>;
|
6
|
-
foreground?: boolean;
|
7
|
-
borderless?: boolean;
|
8
|
-
enabled?: WithDefault<boolean, true>;
|
9
|
-
rippleColor?: ColorValue;
|
10
|
-
rippleRadius?: Int32;
|
11
|
-
touchSoundDisabled?: WithDefault<boolean, false>;
|
12
|
-
}
|
13
|
-
declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
|
14
|
-
export default _default;
|
1
|
+
/// <reference types="react-native/types/modules/codegen" />
|
2
|
+
import type { Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
|
3
|
+
import type { ViewProps, ColorValue } from 'react-native';
|
4
|
+
interface NativeProps extends ViewProps {
|
5
|
+
exclusive?: WithDefault<boolean, true>;
|
6
|
+
foreground?: boolean;
|
7
|
+
borderless?: boolean;
|
8
|
+
enabled?: WithDefault<boolean, true>;
|
9
|
+
rippleColor?: ColorValue;
|
10
|
+
rippleRadius?: Int32;
|
11
|
+
touchSoundDisabled?: WithDefault<boolean, false>;
|
12
|
+
}
|
13
|
+
declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
|
14
|
+
export default _default;
|
15
15
|
//# sourceMappingURL=RNGestureHandlerButtonNativeComponent.d.ts.map
|
@@ -1,7 +1,7 @@
|
|
1
|
-
/// <reference types="react-native/types/modules/codegen" />
|
2
|
-
import type { ViewProps } from 'react-native';
|
3
|
-
interface NativeProps extends ViewProps {
|
4
|
-
}
|
5
|
-
declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
|
6
|
-
export default _default;
|
1
|
+
/// <reference types="react-native/types/modules/codegen" />
|
2
|
+
import type { ViewProps } from 'react-native';
|
3
|
+
interface NativeProps extends ViewProps {
|
4
|
+
}
|
5
|
+
declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
|
6
|
+
export default _default;
|
7
7
|
//# sourceMappingURL=RNGestureHandlerRootViewNativeComponent.d.ts.map
|
package/package.json
CHANGED
@@ -1,70 +1,78 @@
|
|
1
|
-
{
|
2
|
-
"name": "@react-native-oh-tpl/react-native-gesture-handler",
|
3
|
-
"harmony": {
|
4
|
-
"alias": "react-native-gesture-handler",
|
5
|
-
"
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
"
|
17
|
-
|
18
|
-
"
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
"
|
26
|
-
|
27
|
-
"
|
28
|
-
"
|
29
|
-
"
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
"
|
34
|
-
|
35
|
-
"
|
36
|
-
"react-native-
|
37
|
-
"
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
1
|
+
{
|
2
|
+
"name": "@react-native-oh-tpl/react-native-gesture-handler",
|
3
|
+
"harmony": {
|
4
|
+
"alias": "react-native-gesture-handler",
|
5
|
+
"codegenConfig": {
|
6
|
+
"specPaths": [
|
7
|
+
"./src/specs"
|
8
|
+
]
|
9
|
+
},
|
10
|
+
"redirectInternalImports": true,
|
11
|
+
"autolinking": {
|
12
|
+
"cmakeLibraryTargetName": "rnoh_gesture_handler",
|
13
|
+
"ohPackageName": "@react-native-oh-tpl/react-native-gesture-handler"
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"repository": {
|
17
|
+
"type": "git",
|
18
|
+
"url": "https://github.com/react-native-oh-library/react-native-harmony-gesture-handler.git"
|
19
|
+
},
|
20
|
+
"version": "2.14.14",
|
21
|
+
"description": "",
|
22
|
+
"react-native": "src/index.ts",
|
23
|
+
"main": "lib/commonjs/index.js",
|
24
|
+
"module": "lib/module/index.js",
|
25
|
+
"types": "lib/typescript/index.d.ts",
|
26
|
+
"scripts": {
|
27
|
+
"prepack": "bob build",
|
28
|
+
"test": "jest",
|
29
|
+
"pack:prod": "npm pack",
|
30
|
+
"update_version": "node ./scripts/update-version.js",
|
31
|
+
"deploy": "node ./scripts/deploy.js"
|
32
|
+
},
|
33
|
+
"peerDependencies": {
|
34
|
+
"react": "*",
|
35
|
+
"react-native": "*",
|
36
|
+
"react-native-harmony": "*",
|
37
|
+
"react-native-gesture-handler": "2.14.1"
|
38
|
+
},
|
39
|
+
"keywords": [],
|
40
|
+
"author": "",
|
41
|
+
"license": "ISC",
|
42
|
+
"devDependencies": {
|
43
|
+
"@types/hoist-non-react-statics": "^3.3.1",
|
44
|
+
"react-native-gesture-handler": "2.14.1",
|
45
|
+
"@babel/core": "^7.12.9",
|
46
|
+
"@babel/plugin-proposal-class-properties": "^7.12.1",
|
47
|
+
"@babel/preset-env": "^7.12.11",
|
48
|
+
"@babel/preset-typescript": "^7.12.7",
|
49
|
+
"@babel/runtime": "^7.12.5",
|
50
|
+
"@types/react": "^18.2.18",
|
51
|
+
"metro-react-native-babel-preset": "^0.64.0",
|
52
|
+
"react": "^18.2.0",
|
53
|
+
"react-native": "^0.72.0",
|
54
|
+
"react-native-builder-bob": "^0.21.3",
|
55
|
+
"typescript": "4.5.5"
|
56
|
+
},
|
57
|
+
"files": [
|
58
|
+
"./harmony/*",
|
59
|
+
"src",
|
60
|
+
"lib",
|
61
|
+
"DrawerLayout/",
|
62
|
+
"Swipeable/"
|
63
|
+
],
|
64
|
+
"react-native-builder-bob": {
|
65
|
+
"source": "src",
|
66
|
+
"output": "lib",
|
67
|
+
"targets": [
|
68
|
+
"commonjs",
|
69
|
+
"module",
|
70
|
+
[
|
71
|
+
"typescript",
|
72
|
+
{
|
73
|
+
"project": "tsconfig.build.json"
|
74
|
+
}
|
75
|
+
]
|
76
|
+
]
|
77
|
+
}
|
78
|
+
}
|
@@ -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
|
+
}
|