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

How to Add Any Extra Character on Labels, like Percentage (%) #34

Closed
ManiruzzamanAkash opened this issue Oct 19, 2020 · 3 comments
Closed

Comments

@ManiruzzamanAkash
Copy link

I want to put additional %, or any additional character on the speedometer.
Means - in value, I can pass any numeric value and that's good.
Now, I want to display that like this - 33%

Is there any way to do that ?

@umarphaarook
Copy link

umarphaarook commented Oct 28, 2020

This Pull Request will help when it's merged.

Example:
<RNSpeedometer value={(value) => '${value}%'} size={200} />

I hope that helps ^^

@rajanZoxima
Copy link

no this is not working

@anoopjangra90
Copy link

Try following style

labelStyle={{ height: 0, width: 0 }}
OR
labelWrapperStyle={{ height: 0, width: 0 }}

and add your own custom text component

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

4 participants