DefinitelyTyped/types/react-native-app-intro-slider/index.d.ts
Haseeb Majid cc53e7ccbe Added react-native-app-intro-slider (#37137)
* Added react-native-app-intro-slider

Added react-native-app-intro-slider.

* Fixed pipeline error

Removed semicolon to fix pipeline error.
2019-07-25 16:21:26 -07:00

38 lines
1.2 KiB
TypeScript

// Type definitions for react-native-app-intro-slider 3.0
// Project: https://github.com/jacse/react-native-app-intro-slider
// Definitions by: Haseeb Majid <https://github.com/hmajid2301>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.1
import * as React from 'react';
import { ButtonProps, TextProps, ViewStyle } from 'react-native';
export interface AppIntroProps {
skipLabel?: string;
doneLabel?: string;
nextLabel?: string;
prevLabel?: string;
bottomButton?: boolean;
buttonStyle?: ButtonProps;
buttonTextStyle?: TextProps;
dotStyle?: ViewStyle;
activeDotStyle?: ViewStyle;
paginationStyle?: TextProps;
hidePagination?: boolean;
renderNextButton?: () => void;
renderPrevButton?: () => void;
renderDoneButton?: () => void;
renderSkipButton?: () => void;
renderItem?: (item: any) => React.ReactElement;
slides: any[];
showSkipButton?: boolean;
showPrevButton?: boolean;
showNextButton?: boolean;
showDoneButton?: boolean;
onSlideChange?: (index: number, lastIndex: number) => void;
onDone?: () => void;
onSkip?: () => void;
}
export default class AppIntroSlider extends React.Component<AppIntroProps> {}