Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circular Progress Indicator Fully Filled When Value is Close to 100 (e.g., 95 or 98) i am using progress indicator with dashedStrokeConfig #123

Open
AsurNikul opened this issue Sep 15, 2024 · 0 comments

Comments

@AsurNikul
Copy link

The indicator is only fully filled when the value is 100 but the issue it it showing fully filed when the value greater then 96 ( e.g 98 , 99 )

Steps to reproduce

=> render the circular progress component with the value is greater then 96 ( e.g 98 , 99 )
=> use the strokeDashedConfig as shown in the code snippet

<CircularProgress
value={98}
radius={moderateScale(30)}
inActiveStrokeOpacity={0.5}
activeStrokeWidth={moderateScale(8)}
inActiveStrokeWidth={moderateScale(10)}
progressValueStyle={{fontFamily: Fonts.Roboto.Medium, color: 'white'}}
// activeStrokeSecondaryColor="yellow"
inActiveStrokeColor="black"
duration={2000}
valueSuffix={'%'}
dashedStrokeConfig={{
count: 50,
width: 1,
}}
strokeColorConfig={[
{color: 'red', value: 0},
{color: 'yellow', value: 50},
{color: 'green', value: 100},
]}
/>

 =>  using the higher count in dashedStrokeConfig config like 100 the dash become to close and feel like it losing the dashed 
           Appearance
Screenshot 2024-09-15 at 11 19 18 PM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant