upd: projeect
Deskripsi: - ui list project - ui grid project - ui create project No Issues
This commit is contained in:
@@ -2,7 +2,12 @@ import Styles from "@/constants/Styles";
|
||||
import { useEffect, useState } from "react";
|
||||
import { Animated, Text, View } from "react-native";
|
||||
|
||||
export default function ProgressBar() {
|
||||
|
||||
type Props = {
|
||||
margin?: number
|
||||
}
|
||||
|
||||
export default function ProgressBar({ margin }: Props) {
|
||||
const [progress, setProgress] = useState(new Animated.Value(0));
|
||||
|
||||
|
||||
@@ -16,7 +21,7 @@ export default function ProgressBar() {
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<View style={Styles.wrapBar}>
|
||||
<View style={[Styles.wrapBar, { margin: margin && margin }]}>
|
||||
<Animated.View style={[Styles.contentBar, { width: progress }]} />
|
||||
</View>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user