Skip to content

Commit 72c6430

Browse files
tobiascornilleArrayZoneYour
authored andcommitted
Add missing scrollTo TypeScript definition (#1036)
1 parent f00abfb commit 72c6430

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ declare module 'react-native-swiper' {
139139
}
140140

141141
export default class Swiper extends Component<SwiperProps> {
142-
scrollBy: (index?: number, animated?: boolean) => void
142+
scrollBy: (index?: number, animated?: boolean) => void;
143+
scrollTo: (index: number, animated?: boolean) => void;
143144
}
144145
}

0 commit comments

Comments
 (0)