import { StyleProp, TextStyle } from 'react-native'; import StepIndicator from 'react-native-step-indicator'; import { tw } from '../../core/tailwind'; import { Icon } from './Icon'; import { Text } from './Text'; interface StepperProps { labels: string[]; currentPosition?: number; labelStyle?: StyleProp; } const thirdIndicatorstyles = { stepIndicatorSize: 15, currentStepIndicatorSize: 15, separatorStrokeWidth: 2, currentStepStrokeWidth: 0, stepStrokeCurrentColor: 'transparent', stepStrokeWidth: 1, stepStrokeFinishedColor: 'transparent', stepStrokeUnFinishedColor: '#D9D9D9', separatorFinishedColor: tw.color('bg-primary'), separatorUnFinishedColor: '#dedede', stepIndicatorFinishedColor: tw.color('bg-primary'), stepIndicatorUnFinishedColor: tw.color('bg-dark'), stepIndicatorCurrentColor: tw.color('bg-primary'), stepIndicatorLabelFontSize: 0, currentStepIndicatorLabelFontSize: 0, stepIndicatorLabelCurrentColor: 'transparent', stepIndicatorLabelFinishedColor: 'transparent', stepIndicatorLabelUnFinishedColor: 'transparent', labelColor: '#999999', labelSize: 13, currentStepLabelColor: '#7eaec4', finishedStepLabelColor: 'red', }; export function Stepper({ labels, currentPosition, labelStyle }: StepperProps) { return ( { if (p.stepStatus === 'finished') { return ; } return null; }} renderLabel={(l) => { return ( {l.label} ); }} /> ); }