Fix the issue that percentage text didn't display on Progress.Circle#117
Fix the issue that percentage text didn't display on Progress.Circle#117azurechen wants to merge 1 commit intooblador:masterfrom
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. |
JowelTisso
left a comment
There was a problem hiding this comment.
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.