Last active
July 23, 2020 07:49
-
-
Save kendhia/dd56c7bd3a3f4d879c9b78c753c5096a to your computer and use it in GitHub Desktop.
pie example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<View style={{justifyContent: 'center'}}> | |
<Pie | |
radius={width * 0.18} | |
innerRadius={width * 0.15} | |
sections={[ | |
{ | |
percentage: 15, | |
color: '#3CA039', | |
}, | |
{ | |
percentage: 35, | |
color: '#263746', | |
}, | |
{ | |
percentage: 25, | |
color: '#29A3C7', | |
}, | |
{ | |
percentage: 25, | |
color: '#F65E38', | |
}, | |
]} | |
// strokeCap={'butt'} | |
/> | |
<Text | |
style={{ | |
position: 'absolute', | |
color: '#DE6847', | |
fontSize: height * 0.05, | |
fontFamily: 'Roboto-Bold', | |
alignSelf: 'center', | |
}}> | |
£1 | |
</Text> | |
</View> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment