mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-11 10:59:55 +08:00
Add undocumented parameters for snapToItem
Adds optional „fireCallback“ and „initial“ to snapToItem: https://github.com/archriss/react-native-snap-carousel/blob/v2.2.2/index.js#L585
This commit is contained in:
2
types/react-native-snap-carousel/index.d.ts
vendored
2
types/react-native-snap-carousel/index.d.ts
vendored
@@ -170,7 +170,7 @@ export interface CarouselStatic extends React.ComponentClass<CarouselProps> {
|
||||
currentIndex: number;
|
||||
startAutoplay(instantly?: boolean): void;
|
||||
stopAutoplay(): void;
|
||||
snapToItem(index: number, animated?: boolean): void;
|
||||
snapToItem(index: number, animated?: boolean, fireCallback?: boolean, initial?: boolean): void;
|
||||
snapToNext(animated?: boolean): void;
|
||||
snapToPrev(animated?: boolean): void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user