Skip to content

Commit

Permalink
Merge pull request leecade#931 from danielholmes/patch-1
Browse files Browse the repository at this point in the history
Add missing scrollBy TypeScript definition
  • Loading branch information
ArrayZoneYour authored Jun 26, 2019
2 parents 6503b1c + 4d4b26e commit 5a6a9f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,7 @@ declare module 'react-native-swiper' {
scrollEnabled?: boolean
}

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

0 comments on commit 5a6a9f5

Please sign in to comment.