I've got an issue with the design.
This is design:
Are there any ways that we can add a circle to the top of the progress bar like this design?
I'm using react-native-circular-progress library.
I use almost props of the library.
This is my code:
const Progress = ({fill}: Types) => {
const {translations} = useContext(LocalizationContext);
return (
<>
<View style={PropertyDetailStyles.dailyCapWrapper}>
<AnimatedCircularProgress
size={240}
fill={fill}
arcSweepAngle={181}
rotation={270}
lineCap="round"
tintColor={fill >= 100 ? TERTIARY_YELLOW : SECONDARY_BLUE}
backgroundColor={TERTIARY_GREY}
width={10}
backgroundWidth={10}
duration={1000}
children={() => {
return (
<Text style={PropertyDetailStyles.dailyCapText}>
{fill >= 100
? translations.visitDetail.dayPassUnLock
: translations.visitDetail.dayPass}
</Text>
);
}}
childrenContainerStyle={
PropertyDetailStyles.dailyCapChildrenContainer
}
/>
<Image
style={PropertyDetailStyles.dailyCapImage}
source={
fill >= 100
? require('../../../../../assets/image/lineProgressMax.png')
: require('../../../../../assets/image/lineProgress.png')
}
/>
</View>
</>
);
};
export default Progress;