Merge pull request #32774 from AAlakkad/master

Update react-swipe definition to add childCount prop
This commit is contained in:
Mine Starks
2019-02-12 15:24:47 -08:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
// Type definitions for react-swipe 5.0
// Type definitions for react-swipe 6.0
// Project: https://github.com/voronianski/react-swipe
// Definitions by: Deividas Bakanas <https://github.com/DeividasBakanas>
// Definitions by: Deividas Bakanas <https://github.com/DeividasBakanas>, Ammar Alakkad <https://github.com/AAlakkad>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
@@ -26,6 +26,7 @@ declare namespace ReactSwipe {
interface Props {
id?: string;
swipeOptions?: SwipeOptions;
childCount?: number;
style?: Style;
className?: string;
}
+1
View File
@@ -53,6 +53,7 @@ class ReactSwipeTest extends React.PureComponent {
id="test-carousel"
swipeOptions={swipeOptions}
style={style}
childCount={3}
ref={(swipeComponent) => { this.swipeComponent = swipeComponent; }}
>
<div>PANE 1</div>