import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; import { useTheme } from '../theme/context'; interface ProgressBarProps { label?: string; value: number; // 0-100 color?: string; } export function ProgressBar({ label, value, color }: ProgressBarProps) { const theme = useTheme(); const barColor = color || theme.colors.primary; return ( {label && ( {label} {value}% )} ); } const styles = StyleSheet.create({ container: { width: '100%', marginVertical: 4, }, header: { flexDirection: 'row', justifyContent: 'space-between', marginBottom: 6, }, label: { fontSize: 12, fontWeight: '700', }, value: { fontSize: 12, }, track: { height: 8, borderRadius: 999, overflow: 'hidden', }, fill: { height: '100%', borderRadius: 999, }, });