Skip to content

Commit dae4dd9

Browse files
committed
legacy
1 parent aec9a15 commit dae4dd9

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ export type {
147147
} from './handlers/gestureHandlerTypesCompat';
148148

149149
export type {
150-
PressableProps,
151-
PressableStateCallbackType,
150+
PressableProps as LegacyPressableProps,
151+
PressableStateCallbackType as LegacyPressableCallbackType,
152152
} from './v3/components/Pressable';
153-
export { default as Pressable } from './v3/components/Pressable';
153+
export { default as LegacyPressable } from './v3/components/Pressable';
154154

155155
export type { GestureTouchEvent as SingleGestureTouchEvent } from './handlers/gestureHandlerCommon';
156156

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ export {
2020
FlatList,
2121
RefreshControl,
2222
} from './GestureComponents';
23+
24+
export type { PressableProps, PressableStateCallbackType } from './Pressable';
25+
export { default as Pressable } from './Pressable';

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ export {
7171
RefreshControl,
7272
} from './components';
7373

74+
export {
75+
PressableProps,
76+
PressableStateCallbackType,
77+
Pressable,
78+
} from './components';
79+
7480
export type { ComposedGesture } from './types';
7581

7682
export { GestureStateManager } from './gestureStateManager';

0 commit comments

Comments
 (0)