import { Progress } from '@/components/ui/progress'; import { Text } from '@/components/ui/text'; import { View } from '@/components/ui/view'; import React, { useState } from 'react'; import { TouchableOpacity } from 'react-native'; export function ProgressSteps() { const [currentStep, setCurrentStep] = useState(2); const steps = ['Account Setup', 'Personal Info', 'Verification', 'Complete']; const progress = (currentStep / (steps.length - 1)) * 100; return ( {/* Step Progress */} Setup Progress Step {currentStep + 1} of {steps.length} {steps.map((step, index) => ( {index < currentStep ? '✓' : index + 1} {step} ))} {/* Controls */} 0 ? '#007AFF' : '#e5e7eb', borderRadius: 6, }} onPress={() => setCurrentStep(Math.max(0, currentStep - 1))} disabled={currentStep === 0} > 0 ? '#fff' : '#999', fontWeight: '500', }} > Previous setCurrentStep(Math.min(steps.length - 1, currentStep + 1)) } disabled={currentStep === steps.length - 1} > Next ); }