Skip to content

Commit 2e6d08a

Browse files
DimitarNestorovosdnk
authored andcommitted
Added missing style props for Swipeable in type defs (software-mansion#660)
1 parent 2980bb0 commit 2e6d08a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

react-native-gesture-handler.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ declare module 'react-native-gesture-handler' {
442442
}
443443

444444
declare module 'react-native-gesture-handler/Swipeable' {
445-
import { Animated } from 'react-native';
445+
import { Animated, StyleProp, ViewStyle } from 'react-native';
446446

447447
interface SwipeableProperties {
448448
friction?: number;
@@ -468,6 +468,8 @@ declare module 'react-native-gesture-handler/Swipeable' {
468468
dragAnimatedValue: Animated.AnimatedInterpolation
469469
) => React.ReactNode;
470470
useNativeAnimations?: boolean;
471+
containerStyle?: StyleProp<ViewStyle>;
472+
childrenContainerStyle?: StyleProp<ViewStyle>;
471473
}
472474

473475
export default class Swipeable extends React.Component<SwipeableProperties> {

0 commit comments

Comments
 (0)