import { Component, ReactElement, ComponentType } from 'react'; import { FlatListProps, StyleProp, ViewStyle, TextStyle } from 'react-native'; export interface PageData { backgroundColor?: string; background?: ReactElement; isLight?: boolean; image: ReactElement; title: string | ReactElement | (() => ReactElement); subtitle: string | ReactElement; titleStyles?: StyleProp; subTitleStyles?: StyleProp; nextLabel?: string | ReactElement; skipLabel?: string | ReactElement; doneLabel?: string | ReactElement; canSwipeForward?: boolean; canSwipeBackward?: boolean; } export interface DotProps { selected: boolean; isLight: boolean; } export interface SkipButtonProps { skipLabel: string | ReactElement; isLight: boolean; allowFontScaling: boolean; onPress: () => void; disabled?: boolean; } export interface NextButtonProps { nextLabel: string | ReactElement; isLight: boolean; allowFontScaling: boolean; onPress: () => void; disabled?: boolean; } export interface DoneButtonProps { isLight: boolean; allowFontScaling: boolean; onPress: () => void; doneLabel?: string | ReactElement; disabled?: boolean; } export interface OnboardingProps { pages: PageData[]; bottomBarHighlight?: boolean; bottomBarHeight?: number; bottomBarColor?: string; controlStatusBar?: boolean; showSkip?: boolean; showNext?: boolean; showDone?: boolean; showPagination?: boolean; onSkip?: () => void; onDone?: () => void; onNext?: () => void; skipLabel?: string | ReactElement; nextLabel?: string | ReactElement; doneLabel?: string | ReactElement; SkipButtonComponent?: ComponentType; DoneButtonComponent?: ComponentType; NextButtonComponent?: ComponentType; DotComponent?: ComponentType; containerStyles?: StyleProp; imageContainerStyles?: StyleProp; allowFontScalingText?: boolean; allowFontScalingButtons?: boolean; titleStyles?: StyleProp; subTitleStyles?: StyleProp; transitionAnimationDuration?: number; currentPage?: number; skipToPage?: number; pageIndexCallback?: (index: number) => void; flatlistProps?: Partial>; } export default class Onboarding extends Component { goNext(): void; goToPage(index: number, animated?: boolean): void; }