import React, { useState } from "react"; import { StyleSheet, Text, View, TouchableOpacity } from "react-native"; import colors from "../../res/colors"; interface PercentageBarProps { percentage: string; height: string; lengthFlex: number; backgroundColor: string; completedColor: string; } const PercentageBar = ({ percentage, height, lengthFlex, backgroundColor, completedColor, // containerStyle, }) => { const [getPercentage, setPercentage] = useState(percentage); const [getheight, setHeight] = useState(height); const [getBackgroundColor, setBackgroundColor] = useState(backgroundColor); const [getCompletedColor, setCompletedColor] = useState(completedColor); return ( {getPercentage} ); }; export default PercentageBar;