[skip ci] Initial commit — CodexBar Mobile Expo app

This commit is contained in:
2026-06-24 16:28:28 +02:00
parent 4f32782eaf
commit 0bcd95ee1b
30 changed files with 3562 additions and 141 deletions
+23
View File
@@ -0,0 +1,23 @@
import { View } from "react-native";
interface ProgressBarProps {
percent: number;
}
function getBarColor(percent: number): string {
if (percent >= 85) return "bg-red-500";
if (percent >= 60) return "bg-yellow-400";
return "bg-green-500";
}
export function ProgressBar({ percent }: ProgressBarProps) {
const clamped = Math.max(0, Math.min(100, percent));
return (
<View className="h-2.5 w-full rounded-full bg-neutral-200 dark:bg-neutral-700">
<View
className={`h-2.5 rounded-full ${getBarColor(clamped)}`}
style={{ width: `${clamped}%` }}
/>
</View>
);
}