@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.
Files changed (105) hide show
  1. package/DrawerLayout/index.ts +2 -2
  2. package/Swipeable/index.ts +2 -2
  3. package/harmony/gesture_handler/BuildProfile.ets +17 -0
  4. package/harmony/gesture_handler/build-profile.json5 +19 -0
  5. package/harmony/gesture_handler/hvigorfile.ts +2 -0
  6. package/harmony/gesture_handler/index.ets +2 -0
  7. package/harmony/gesture_handler/oh-package-lock.json5 +18 -0
  8. package/harmony/gesture_handler/oh-package.json5 +12 -0
  9. package/harmony/gesture_handler/src/main/cpp/CMakeLists.txt +8 -0
  10. package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.h +12 -0
  11. package/harmony/gesture_handler/src/main/cpp/RnohReactNativeHarmonyGestureHandlerPackage.cpp +123 -0
  12. package/harmony/gesture_handler/src/main/cpp/RnohReactNativeHarmonyGestureHandlerPackage.h +15 -0
  13. package/harmony/gesture_handler/src/main/cpp/componentInstances/RNGestureHandlerButtonComponentInstance.h +27 -0
  14. package/harmony/gesture_handler/src/main/cpp/componentInstances/RNGestureHandlerRootViewComponentInstance.h +245 -0
  15. package/harmony/gesture_handler/src/main/ets/RNOHPackage.ets +17 -0
  16. package/harmony/gesture_handler/src/main/ets/core/CircularBuffer.ts +42 -0
  17. package/harmony/gesture_handler/src/main/ets/core/GestureHandler.ts +739 -0
  18. package/harmony/gesture_handler/src/main/ets/core/GestureHandlerOrchestrator.ts +344 -0
  19. package/harmony/gesture_handler/src/main/ets/core/GestureHandlerRegistry.ts +63 -0
  20. package/harmony/gesture_handler/src/main/ets/core/IncomingEvent.ts +78 -0
  21. package/harmony/gesture_handler/src/main/ets/core/InteractionManager.ts +144 -0
  22. package/harmony/gesture_handler/src/main/ets/core/LeastSquareSolver.ts +182 -0
  23. package/harmony/gesture_handler/src/main/ets/core/Multiset.ts +26 -0
  24. package/harmony/gesture_handler/src/main/ets/core/OutgoingEvent.ts +34 -0
  25. package/harmony/gesture_handler/src/main/ets/core/OutgoingEventDispatcher.ts +12 -0
  26. package/harmony/gesture_handler/src/main/ets/core/PointerTracker.ts +239 -0
  27. package/harmony/gesture_handler/src/main/ets/core/RNGHError.ts +5 -0
  28. package/harmony/gesture_handler/src/main/ets/core/RNGHLogger.ts +16 -0
  29. package/harmony/gesture_handler/src/main/ets/core/State.ts +47 -0
  30. package/harmony/gesture_handler/src/main/ets/core/Vector2D.ts +80 -0
  31. package/harmony/gesture_handler/src/main/ets/core/VelocityTracker.ts +106 -0
  32. package/harmony/gesture_handler/src/main/ets/core/View.ts +21 -0
  33. package/harmony/gesture_handler/src/main/ets/core/ViewRegistry.ts +7 -0
  34. package/harmony/gesture_handler/src/main/ets/core/index.ts +15 -0
  35. package/harmony/gesture_handler/src/main/ets/detectors/ScaleGestureDetector.ts +169 -0
  36. package/harmony/gesture_handler/src/main/ets/gesture-handlers/FlingGestureHandler.ts +219 -0
  37. package/harmony/gesture_handler/src/main/ets/gesture-handlers/GestureHandlerFactory.ts +67 -0
  38. package/harmony/gesture_handler/src/main/ets/gesture-handlers/LongPressGestureHandler.ts +139 -0
  39. package/harmony/gesture_handler/src/main/ets/gesture-handlers/ManualGestureHandler.ts +50 -0
  40. package/harmony/gesture_handler/src/main/ets/gesture-handlers/NativeViewGestureHandler.ts +124 -0
  41. package/harmony/gesture_handler/src/main/ets/gesture-handlers/PanGestureHandler.ts +361 -0
  42. package/harmony/gesture_handler/src/main/ets/gesture-handlers/PinchGestureHandler.ts +174 -0
  43. package/harmony/gesture_handler/src/main/ets/gesture-handlers/RotationGestureHandler.ts +172 -0
  44. package/harmony/gesture_handler/src/main/ets/gesture-handlers/TapGestureHandler.ts +216 -0
  45. package/harmony/gesture_handler/src/main/ets/gesture-handlers/detectors/RotationGestureDetector.ts +167 -0
  46. package/harmony/gesture_handler/src/main/ets/gesture-handlers/index.ts +1 -0
  47. package/harmony/gesture_handler/src/main/ets/rnoh/GestureHandlerPackage.ts +25 -0
  48. package/harmony/gesture_handler/src/main/ets/rnoh/Logger.ts +107 -0
  49. package/harmony/gesture_handler/src/main/ets/rnoh/OutgoingEventDispatchers.ts +94 -0
  50. package/harmony/gesture_handler/src/main/ets/rnoh/RNGHRootViewController.ts +182 -0
  51. package/harmony/gesture_handler/src/main/ets/rnoh/RNGHView.ts +62 -0
  52. package/harmony/gesture_handler/src/main/ets/rnoh/RNGHViewController.ts +262 -0
  53. package/harmony/gesture_handler/src/main/ets/rnoh/RNGHViewRegistry.ts +19 -0
  54. package/harmony/gesture_handler/src/main/ets/rnoh/RNGestureHandlerModule.ts +267 -0
  55. package/harmony/gesture_handler/src/main/ets/rnoh/RNOHGestureResponder.ts +15 -0
  56. package/harmony/gesture_handler/src/main/ets/rnoh/RNOHScrollLocker.ts +25 -0
  57. package/harmony/gesture_handler/src/main/ets/rnoh/types.ts +25 -0
  58. package/harmony/gesture_handler/src/main/module.json5 +9 -0
  59. package/harmony/gesture_handler/src/main/resources/base/element/color.json +8 -0
  60. package/harmony/gesture_handler/src/main/resources/base/element/string.json +16 -0
  61. package/harmony/gesture_handler/src/main/resources/base/media/icon.png +0 -0
  62. package/harmony/gesture_handler/src/main/resources/base/profile/main_pages.json +5 -0
  63. package/harmony/gesture_handler/src/main/resources/en_US/element/string.json +16 -0
  64. package/harmony/gesture_handler/src/main/resources/zh_CN/element/string.json +16 -0
  65. package/harmony/gesture_handler/ts.ts +2 -0
  66. package/harmony/gesture_handler.har +0 -0
  67. package/lib/commonjs/RNGestureHandlerModule.js +3 -2
  68. package/lib/commonjs/RNGestureHandlerModule.js.map +1 -1
  69. package/lib/commonjs/components/GestureHandlerRootView.js +3 -3
  70. package/lib/commonjs/components/GestureHandlerRootView.js.map +1 -1
  71. package/lib/commonjs/handlers/createHandler.js +18 -15
  72. package/lib/commonjs/handlers/createHandler.js.map +1 -1
  73. package/lib/commonjs/index.js +36 -8
  74. package/lib/commonjs/index.js.map +1 -1
  75. package/lib/commonjs/specs/NativeRNGestureHandlerModule.js +2 -1
  76. package/lib/commonjs/specs/NativeRNGestureHandlerModule.js.map +1 -1
  77. package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js +3 -2
  78. package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -1
  79. package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js +3 -2
  80. package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -1
  81. package/lib/module/RNGestureHandlerModule.js.map +1 -1
  82. package/lib/module/components/GestureHandlerRootView.js.map +1 -1
  83. package/lib/module/handlers/createHandler.js +15 -12
  84. package/lib/module/handlers/createHandler.js.map +1 -1
  85. package/lib/module/index.js +5 -7
  86. package/lib/module/index.js.map +1 -1
  87. package/lib/module/specs/NativeRNGestureHandlerModule.js.map +1 -1
  88. package/lib/module/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -1
  89. package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -1
  90. package/lib/typescript/RNGestureHandlerModule.d.ts +2 -2
  91. package/lib/typescript/components/GestureHandlerRootView.d.ts +6 -6
  92. package/lib/typescript/handlers/createHandler.d.ts +11 -11
  93. package/lib/typescript/index.d.ts +47 -42
  94. package/lib/typescript/index.d.ts.map +1 -1
  95. package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts +14 -14
  96. package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts +14 -14
  97. package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts +6 -6
  98. package/package.json +78 -70
  99. package/src/RNGestureHandlerModule.ts +4 -4
  100. package/src/components/GestureHandlerRootView.tsx +23 -23
  101. package/src/handlers/createHandler.tsx +534 -534
  102. package/src/index.ts +172 -172
  103. package/src/specs/NativeRNGestureHandlerModule.ts +26 -26
  104. package/src/specs/RNGestureHandlerButtonNativeComponent.ts +18 -18
  105. package/src/specs/RNGestureHandlerRootViewNativeComponent.ts +6 -6
@@ -1 +1 @@
1
- {"version":3,"names":["codegenNativeComponent"],"sourceRoot":"..\\..\\..\\src","sources":["specs/RNGestureHandlerButtonNativeComponent.ts"],"mappings":"AAAA,OAAOA,sBAAsB,MAAM,yDAAyD;AAiB5F,eAAeA,sBAAsB,CAAc,wBAAwB,CAAC","ignoreList":[]}
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":"..\\..\\..\\src","sources":["specs/RNGestureHandlerRootViewNativeComponent.ts"],"mappings":"AAAA,OAAOA,sBAAsB,MAAM,yDAAyD;AAK5F,eAAeA,sBAAsB,CAAc,0BAA0B,CAAC","ignoreList":[]}
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 { PanGestureHandler } from 'react-native-gesture-handler/src/handlers/PanGestureHandler';
19
- export { default as createNativeWrapper } from 'react-native-gesture-handler/src/handlers/createNativeWrapper';
20
- export type { NativeViewGestureHandlerPayload, NativeViewGestureHandlerProps, } from 'react-native-gesture-handler/src/handlers/NativeViewGestureHandler';
21
- export { GestureDetector } from 'react-native-gesture-handler/src/handlers/gestures/GestureDetector';
22
- export { GestureObjects as Gesture } from 'react-native-gesture-handler/src/handlers/gestures/gestureObjects';
23
- export type { TapGestureType as TapGesture } from 'react-native-gesture-handler/src/handlers/gestures/tapGesture';
24
- export type { PanGestureType as PanGesture } from 'react-native-gesture-handler/src/handlers/gestures/panGesture';
25
- export type { FlingGestureType as FlingGesture } from 'react-native-gesture-handler/src/handlers/gestures/flingGesture';
26
- export type { LongPressGestureType as LongPressGesture } from 'react-native-gesture-handler/src/handlers/gestures/longPressGesture';
27
- export type { PinchGestureType as PinchGesture } from 'react-native-gesture-handler/src/handlers/gestures/pinchGesture';
28
- export type { RotationGestureType as RotationGesture } from 'react-native-gesture-handler/src/handlers/gestures/rotationGesture';
29
- export type { ForceTouchGestureType as ForceTouchGesture } from 'react-native-gesture-handler/src/handlers/gestures/forceTouchGesture';
30
- export type { NativeGestureType as NativeGesture } from 'react-native-gesture-handler/src/handlers/gestures/nativeGesture';
31
- export type { ManualGestureType as ManualGesture } from 'react-native-gesture-handler/src/handlers/gestures/manualGesture';
32
- export type { ComposedGestureType as ComposedGesture, RaceGestureType as RaceGesture, SimultaneousGestureType as SimultaneousGesture, ExclusiveGestureType as ExclusiveGesture, } from 'react-native-gesture-handler/src/handlers/gestures/gestureComposition';
33
- export type { GestureStateManagerType as GestureStateManager } from 'react-native-gesture-handler/src/handlers/gestures/gestureStateManager';
34
- export type { RawButtonProps, BaseButtonProps, RectButtonProps, BorderlessButtonProps, } from 'react-native-gesture-handler/src/components/GestureButtons';
35
- export { RawButton, BaseButton, RectButton, BorderlessButton, PureNativeButton, } from 'react-native-gesture-handler/src/components/GestureButtons';
36
- export { TouchableHighlight, TouchableNativeFeedback, TouchableOpacity, TouchableWithoutFeedback, } from 'react-native-gesture-handler/src/components/touchables';
37
- export { ScrollView, Switch, TextInput, DrawerLayoutAndroid, FlatList, RefreshControl, } from 'react-native-gesture-handler/src/components/GestureComponents';
38
- 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';
39
- export { default as Swipeable } from 'react-native-gesture-handler/src/components/Swipeable';
40
- export type { DrawerLayoutProps, DrawerPosition, DrawerState, DrawerType, DrawerLockMode, DrawerKeyboardDismissMode, } from 'react-native-gesture-handler/src/components/DrawerLayout';
41
- export { default as DrawerLayout } from 'react-native-gesture-handler/src/components/DrawerLayout';
42
- export { enableExperimentalWebImplementation, enableLegacyWebImplementation, } from 'react-native-gesture-handler/src/EnableNewWebImplementation';
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,MA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E,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,UAAU,EACV,MAAM,EACN,SAAS,EACT,mBAAmB,EACnB,QAAQ,EACR,cAAc,GACf,MAAM,+DAA+D,CAAC;AACvE,YAAY,EAEV,0BAA0B,EAC1B,8BAA8B,EAE9B,qCAAqC,EACrC,oCAAoC,EACpC,oCAAoC,EACpC,wCAAwC,EACxC,6BAA6B,EAC7B,iCAAiC,EACjC,oCAAoC,EACpC,wCAAwC,EACxC,mCAAmC,EACnC,uCAAuC,EACvC,6BAA6B,EAC7B,iCAAiC,EACjC,+BAA+B,EAC/B,mCAAmC,EACnC,kCAAkC,EAClC,sCAAsC,EACtC,+BAA+B,EAC/B,mCAAmC,EAEnC,kCAAkC,EAClC,2BAA2B,EAC3B,iCAAiC,EACjC,2BAA2B,EAC3B,6BAA6B,EAC7B,gCAAgC,EAChC,6BAA6B,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
- "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.8-rc.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
- "prepublishOnly": "npm run prepack",
22
- "update_version": "node ./scripts/update-version.js",
23
- "deploy": "node ./scripts/deploy.js"
24
- },
25
- "peerDependencies": {
26
- "react": "*",
27
- "react-native": "*",
28
- "react-native-harmony": "*",
29
- "react-native-gesture-handler": "2.14.1"
30
- },
31
- "keywords": [],
32
- "author": "",
33
- "license": "ISC",
34
- "devDependencies": {
35
- "@types/hoist-non-react-statics": "^3.3.1",
36
- "react-native-gesture-handler": "2.14.1",
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/react": "^18.2.18",
43
- "metro-react-native-babel-preset": "^0.64.0",
44
- "react": "^18.2.0",
45
- "react-native": "^0.72.0",
46
- "react-native-builder-bob": "^0.21.3",
47
- "typescript": "4.5.5"
48
- },
49
- "files": [
50
- "./harmony/*",
51
- "src",
52
- "lib",
53
- "DrawerLayout/",
54
- "Swipeable/"
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
+ "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
+ }