Skip to content

Commit

Permalink
Added missing style props for Swipeable in type defs (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitarNestorov authored and osdnk committed Jul 7, 2019
1 parent 2980bb0 commit 2e6d08a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion react-native-gesture-handler.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ declare module 'react-native-gesture-handler' {
}

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

interface SwipeableProperties {
friction?: number;
Expand All @@ -468,6 +468,8 @@ declare module 'react-native-gesture-handler/Swipeable' {
dragAnimatedValue: Animated.AnimatedInterpolation
) => React.ReactNode;
useNativeAnimations?: boolean;
containerStyle?: StyleProp<ViewStyle>;
childrenContainerStyle?: StyleProp<ViewStyle>;
}

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

0 comments on commit 2e6d08a

Please sign in to comment.