Merge pull request #34099 from adambowles/patch-3

Add rotationAngle prop to react-swipeable
This commit is contained in:
Sheetal Nandi
2019-03-22 12:02:50 -07:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -1,8 +1,9 @@
// Type definitions for react-swipeable 4.2
// Type definitions for react-swipeable 4.3
// Project: https://github.com/dogfessional/react-swipeable
// Definitions by: Giedrius Grabauskas <https://github.com/GiedriusGrabauskas>
// Konstantin Vasilev <https://github.com/mctep>
// Hiroki Horiuchi <https://github.com/horiuchi>
// Adam Bowles <https://github.com/adambowles>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
@@ -36,6 +37,7 @@ declare namespace ReactSwipeable {
nodeName?: string;
trackMouse?: boolean;
disabled?: boolean;
rotationAngle?: number;
innerRef?: React.Ref<T>;
children?: React.ReactNode;
}

View File

@@ -39,6 +39,7 @@ class SampleComponent extends React.PureComponent<Swipeable.SwipeableProps> {
disabled
innerRef={this.swipeRef}
onClick={this.handleClick}
rotationAngle={0}
>
<div>
This element can be swiped