Skip to content

Commit

Permalink
Add missing scrollTo TypeScript definition (leecade#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiascornille authored and ArrayZoneYour committed Aug 13, 2019
1 parent f00abfb commit 72c6430
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ declare module 'react-native-swiper' {
}

export default class Swiper extends Component<SwiperProps> {
scrollBy: (index?: number, animated?: boolean) => void
scrollBy: (index?: number, animated?: boolean) => void;
scrollTo: (index: number, animated?: boolean) => void;
}
}

0 comments on commit 72c6430

Please sign in to comment.