mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 23:59:08 +00:00
first commit
This commit is contained in:
31
components/ProgressCircle.tsx
Normal file
31
components/ProgressCircle.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
import React from "react";
|
||||
import { View, StyleSheet } from "react-native";
|
||||
import { AnimatedCircularProgress } from "react-native-circular-progress";
|
||||
|
||||
type ProgressCircleProps = {
|
||||
size: number;
|
||||
fill: number; // Progress percentage (0 to 100)
|
||||
width: number; // Stroke width of the circle
|
||||
tintColor: string; // Color of the progress part
|
||||
backgroundColor: string; // Color of the remaining part
|
||||
};
|
||||
|
||||
const ProgressCircle: React.FC<ProgressCircleProps> = ({
|
||||
size,
|
||||
fill,
|
||||
width,
|
||||
tintColor,
|
||||
backgroundColor,
|
||||
}) => {
|
||||
return (
|
||||
<AnimatedCircularProgress
|
||||
size={size}
|
||||
width={width}
|
||||
fill={fill}
|
||||
tintColor={tintColor}
|
||||
backgroundColor={backgroundColor}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default ProgressCircle;
|
||||
Reference in New Issue
Block a user