react-native-lamantin
Version:
Set of components for https://lamantin.group development
31 lines (30 loc) • 896 B
TypeScript
import React, { Component } from 'react';
import { ViewStyle } from 'react-native';
import { CarouselStatic } from 'react-native-snap-carousel';
import { Step } from './Step';
export interface WizardComponentStrings {
skip: string;
finish: string;
next: string;
}
export interface WizardComponentProps {
steps: Step[];
onFinish: () => void;
renderStep?: (step: Step, index: number) => () => React.ReactNode;
strings?: WizardComponentStrings;
style?: ViewStyle;
}
export interface WizardComponentState {
index: number;
}
export declare class WizardComponent extends Component<WizardComponentProps, WizardComponentState> {
static defaultProps: {
renderStep: (step: Step) => JSX.Element;
};
carouselRef?: CarouselStatic<any>;
state: {
index: number;
};
readonly pagination: JSX.Element;
render(): JSX.Element | null;
}