Better sized and more informative character counter

This commit is contained in:
Paul Frazee
2022-12-05 13:59:13 -06:00
parent d8280b6ad9
commit b33269a535
3 changed files with 24 additions and 28 deletions
@@ -1,3 +0,0 @@
// @ts-ignore no type definition -prf
import ProgressCircle from 'react-native-progress/Circle'
export default ProgressCircle
-20
View File
@@ -1,20 +0,0 @@
import {View} from 'react-native'
import {CircularProgressbar, buildStyles} from 'react-circular-progressbar'
const ProgressCircle = ({
color,
progress,
}: {
color?: string
progress: number
}) => {
return (
<View style={{width: 20, height: 20}}>
<CircularProgressbar
value={progress * 100}
styles={buildStyles({pathColor: color || '#00f'})}
/>
</View>
)
}
export default ProgressCircle