// Metro module 11685 (f11686).
import { Component } from "react";
import { View } from "react-native";
import { createLegacyClassComponentStyles } from "../../../../design/components/Styles/native/createStyles";
import { ThemeContext } from "../../../../_bundle/Module3901";
import Module712 from "../../../../_bundle/Module712";
import Module8531, { Circle } from "../../../../_bundle/Module8531";
const styles = createLegacyClassComponentStyles({
progressCircle: {
alignItems: "center",
justifyContent: "center"
},
circle: {
position: "absolute",
width: "100%",
height: "100%"
},
circleOverlay: {
position: "relative",
display: "flex",
justifyContent: "center",
alignItems: "center"
}
});
class ProgressCircle extends Component {
static contextType = ThemeContext;
static defaultProps = {
size: 20,
strokeWidth: 0.9,
color: Module712.unsafe_rawColors.GUILD_BOOSTING_PINK
};
renderCircle() {
const r17 = styles(this.context);
const props = this.props;
const { percent, color, size, strokeWidth } = props;
const r31 = Math.min(Math.max(percent, 0), 100);
const r2 = (size - strokeWidth) / 2;
const strokeDasharray = r2 * Math.PI * 2;
return
;
}
render() {
const r10 = styles(this.context);
const props = this.props;
const { style, children } = props;
return
{this.renderCircle()}
{children != null ? {children} : null}
;
}
}
export default ProgressCircle;