mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Added react-native-app-intro-slider Added react-native-app-intro-slider. * Fixed pipeline error Removed semicolon to fix pipeline error.
38 lines
1.2 KiB
TypeScript
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> {}
|