import React from 'react'; import { View, Text, StyleSheet, ScrollView, Dimensions } from 'react-native'; import { Ux4gLinearProgressBar, useUx4gTheme } from '../index'; const { width } = Dimensions.get('window'); export const LinearProgressBarShowcase: React.FC = () => { const theme = useUx4gTheme(); // Create an array from 0 to 100 in steps of 10 const percentages = Array.from({ length: 11 }, (_, i) => i * 0.1); return ( Linear Progress Bar Combinations {/* Column 1: Sharp, Outside */} Sharp / Outside {percentages.map((val) => ( ))} {/* Column 2: Rounded, Outside */} Rounded / Outside {percentages.map((val) => ( ))} {/* Column 3: Sharp, Inside */} Sharp / Inside {percentages.map((val) => ( ))} {/* Column 4: Rounded, Inside */} Rounded / Inside {percentages.map((val) => ( ))} ); }; const styles = StyleSheet.create({ container: { flex: 1, }, title: { fontSize: 20, fontWeight: 'bold', margin: 16, }, matrixContainer: { flexDirection: 'row', padding: 16, paddingRight: 32, // extra padding for horizontal scroll }, column: { width: width * 0.6, // Each column takes up 60% of screen width to allow scrolling marginRight: 24, }, columnTitle: { fontSize: 14, fontWeight: '600', marginBottom: 24, textAlign: 'center', }, rowItem: { height: 48, // Fixed height per row to align across columns justifyContent: 'center', marginBottom: 16, } });