import React, { useState, useEffect } from 'react'; import { View, ScrollView, Text, StyleSheet } from 'react-native'; import { Ux4gAnimatedHalfCircleProgress, useUx4gTheme } from '../index'; export const HalfCircleProgressShowcase: React.FC = () => { const theme = useUx4gTheme(); const [progress, setProgress] = useState(0.0); useEffect(() => { const interval = setInterval(() => { setProgress((prev) => { const next = Math.round((prev + 0.1) * 10) / 10; return next > 1.0 ? 0.0 : next; }); }, 1000); return () => clearInterval(interval); }, []); return ( Half Circle Progress Indicator Sizes (Default, No Scale) Sizes (With Scale) XL Size Stroke Caps Custom Colors ); }; const styles = StyleSheet.create({ container: { flex: 1, }, title: { fontSize: 24, fontWeight: 'bold', margin: 16, }, section: { marginBottom: 24, }, sectionTitle: { fontSize: 16, fontWeight: '600', marginHorizontal: 16, marginBottom: 16, }, row: { flexDirection: 'row', alignItems: 'flex-end', paddingHorizontal: 16, gap: 32, }, });