-
-
Notifications
You must be signed in to change notification settings - Fork 517
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
Fix the issue that percentage text didn't display on Progress.Circle #117
base: master
Are you sure you want to change the base?
Conversation
@oblador could you merge this? Have the same issue with percentage text not showing up. Tried this and it works. |
Problem with this PR is that it uses a private property that doesn't work when using native driver for example. The examples people have posted in the past were using the component incorrectly, do you have a simple example to reproduce it I'd be happy to fix it :-) |
Ah maybe I did it wrong then.
Should it have been 0.5 instead and not an expression? |
The example here works. But I have the same issue as #67 Is there something wrong with how this is used? I did just notice that the example works perfectly fine outside of a FlatList component! But if it is in an item passed in via renderItem it fails to update the text progress and it looks as though it isn't updating the animation at all like #97. I have a small example, the first Progress.Circle utilises your example code (and runs fine) then there is a FlatList with two Progress circles which do not show an updated text and the animation feels very jerky. I can investigate further later today but I thought it might help.
Seems the similarity between my issue and this are they both use PureComponents. Using |
@oblador When The I thought we could simply replace this in the constructor...
with
However, since your higher order component is converting
|
So how can we fix the private property problem? I really want somebody merge this pr. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is working when the animated is true, but when the animated is false it shows NaN
A temporary solution that I'm using is using a Timeout in a useEffect with a time of "1000", it's not the most suitable but for simpler uses it works well. |
No description provided.