Better sized and more informative character counter

This commit is contained in:
Paul Frazee 2022-12-05 13:59:13 -06:00
parent 39bab0bb08
commit 73c84f6f64
3 changed files with 24 additions and 28 deletions

View file

@ -1,3 +0,0 @@
// @ts-ignore no type definition -prf
import ProgressCircle from 'react-native-progress/Circle'
export default ProgressCircle

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