Hello stack overflow so basically I have something like this.
<View style={styles.chart}>
<Text>{props.unScannedCartons && calculateTotalProgress()}%</Text>
</View>
My style for "styles.chart" is
chart: {
width: 48,
height: 48,
justifyContent: "center",
alignItems: "center",
borderRadius: 48,
borderWidth: 4,
borderColor: Color.opacity(Theme.colors.ink, 0.16),
},
However let’s say I want 25% or 30% of the border color to be red, while the rest of the border stays black. How can I achieve this without a third party package?
2
Answers
Here is what I did to create a simple circular progress:
You can use a masked view @react-native-masked-view/masked-view
Here is an example (based on this post)
Maybe you should consider using a library like SKIA