Skip to content

Commit f76c750

Browse files
fix: support additional props on base pressable
1 parent 9ec671f commit f76c750

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

src/pressables/base.tsx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,25 @@ export type BasePressableProps = {
2121
enabled?: boolean;
2222
} & Partial<PressableContextType<'timing' | 'spring'>> &
2323
Partial<
24-
Pick<AnimatedPressableProps, 'layout' | 'entering' | 'exiting' | 'style'>
24+
Pick<
25+
AnimatedPressableProps,
26+
| 'layout'
27+
| 'entering'
28+
| 'exiting'
29+
| 'style'
30+
| 'hitSlop'
31+
| 'testID'
32+
| 'userSelect'
33+
| 'activeCursor'
34+
| 'shouldCancelWhenOutside'
35+
| 'cancelsTouchesInView'
36+
| 'enableContextMenu'
37+
| 'rippleColor'
38+
| 'rippleRadius'
39+
| 'touchSoundDisabled'
40+
| 'waitFor'
41+
| 'simultaneousHandlers'
42+
>
2543
> & {
2644
onPress?: () => void;
2745
onPressIn?: () => void;

0 commit comments

Comments
 (0)