Fixed ProgressBar crash bug
This commit is contained in:
parent
9edaa2ff27
commit
fd37a13cf5
@ -33,7 +33,7 @@ export default function ProgressBar({
|
|||||||
<View style={tw.style("h-3 w-full bg-slate-300 rounded-lg")}>
|
<View style={tw.style("h-3 w-full bg-slate-300 rounded-lg")}>
|
||||||
<View
|
<View
|
||||||
style={tw.style("h-full bg-slate-700 rounded-lg", {
|
style={tw.style("h-full bg-slate-700 rounded-lg", {
|
||||||
width: percentage,
|
width: `${(value / max) * 100}%`,
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user