Skip to content

Commit 6779e52

Browse files
authored
fix: Fix types for TouchableWithoutFeedback (#2690)
## Description Fixes the types for the TouchableWithoutFeedback. Previously, the TouchableWithoutFeedback exposed itself as it's `TouchableWithoutFeedbackProps`, now it correctly exposes it's props. ## Test plan <!-- Describe how did you test this change here. -->
1 parent 7d51656 commit 6779e52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/touchables/TouchableWithoutFeedback.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import * as React from 'react';
22
import { PropsWithChildren } from 'react';
33
import GenericTouchable, { GenericTouchableProps } from './GenericTouchable';
44

5-
export type TouchableWithoutFeedbackProps = GenericTouchable;
5+
export type TouchableWithoutFeedbackProps = GenericTouchableProps;
66

77
const TouchableWithoutFeedback = React.forwardRef<
8-
TouchableWithoutFeedbackProps,
9-
PropsWithChildren<GenericTouchableProps>
8+
GenericTouchable,
9+
PropsWithChildren<TouchableWithoutFeedbackProps>
1010
>((props, ref) => <GenericTouchable ref={ref} {...props} />);
1111

1212
TouchableWithoutFeedback.defaultProps = GenericTouchable.defaultProps;

0 commit comments

Comments
 (0)