Skip to content

Commit 652fe3f

Browse files
committed
exporting single and composed gesture types
1 parent 052bfb7 commit 652fe3f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/react-native-gesture-handler/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,11 @@ export { NativeDetector } from './v3/NativeDetector/NativeDetector';
168168
export * from './v3/hooks/useGesture';
169169
export * from './v3/hooks/relations';
170170

171-
export { SingleGestureName } from './v3/types';
171+
export {
172+
SingleGestureName,
173+
SingleGestureType,
174+
ComposedGesture as ComposedGestureType,
175+
} from './v3/types';
172176

173177
export * from './v3/hooks/gestures';
174178

packages/react-native-gesture-handler/src/v3/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ export type SingleGesture<THandlerData, TConfig> = {
106106
gestureRelations: GestureRelations;
107107
};
108108

109+
export type SingleGestureType = SingleGesture<unknown, unknown>;
110+
109111
export type ComposedGesture = {
110112
tags: number[];
111113
type: ComposedGestureName;

0 commit comments

Comments
 (0)