Skip to content

Commit c29f5ca

Browse files
fix: update BasePressableProps type definition for better type safety
1 parent 307a32a commit c29f5ca

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/pressables/base.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ export type BasePressableProps = {
2020
animatedStyle?: (progress: SharedValue<number>) => ViewStyle;
2121
enabled?: boolean;
2222
} & Partial<PressableContextType<'timing' | 'spring'>> &
23-
Pick<AnimatedPressableProps, 'layout' | 'entering' | 'exiting' | 'style'> & {
23+
Partial<
24+
Pick<AnimatedPressableProps, 'layout' | 'entering' | 'exiting' | 'style'>
25+
> & {
2426
onPress?: () => void;
2527
onPressIn?: () => void;
2628
onPressOut?: () => void;

0 commit comments

Comments
 (0)