fix(progress-bar): Fix progress bar not reporting watch times (#1611)

Co-authored-by: Gauvain <contact@uruk.dev>
This commit is contained in:
Alex
2026-05-31 22:12:13 +10:00
committed by GitHub
parent eb8dd51b4e
commit 62fc6f9a70

View File

@@ -37,11 +37,12 @@ export const ProgressBar: React.FC<ProgressBarProps> = ({ item }) => {
}
/>
<View
style={{
width: `${progress}%`,
backgroundColor: Platform.isTV ? "#ffffff" : undefined,
}}
className={`absolute bottom-0 left-0 h-1 w-full ${Platform.isTV ? "" : "bg-purple-600"}`}
style={
Platform.isTV
? { width: `${progress}%`, backgroundColor: "#ffffff" }
: { width: `${progress}%` }
}
className={`absolute bottom-0 left-0 h-1 ${Platform.isTV ? "" : "bg-purple-600"}`}
/>
</>
);