Closed Fouppy closed 5 years ago
As a side note, the generated snapshots from our tests change:
Hope this helps!
This is peculiar. #33 was the only feature that changed between those versions. I've got a lot on right now so can't delve into it too much myself but it may be worth you reverting/playing with those lines to see if it fixes it. If that's the case I'd be happy to look over a PR. Best case scenario would be to keep the existing functionality with a fix. Mindful that crashes are far from ideal though so can always revert that commit as a last resort.
Yeah, I've checked the commits and can't understand why it happens. I'll try some fixes and let you know. Anyway thanks for the feedback :)
Ok some quick update: I was using multiple instances of your lib within a FlatList, and the culprit seemed to be some undefined results for the calculation of text and container widths.
I had no time to work on a potential fix for your lib and just removed it for the time being.
That sounds like a feasible explanation. TextTicker measures its parent when it mounts and I imagine things start to get confused when it's inside a Virtualised list as that's doing a lot of off-screen magic to optimize rendering. I think a rewrite would have to happen for them to work together properly.
It's something I'll definitely keep in mind for the future. Will close this for now, thanks for getting back to me!
Isn't there any temporary fix for this issue ?
It wont be as performant for sure but ScrollView instead of FlatList will probably still work. I would set the scroll prop to false too in case the pan-responders from TextTicker and the list are conflicting
@Fouppy @ammarRajabA Can you try this PR and see if it fixes your problem? Going to test myself too but keen to hear your input.
@deanhet I've just tried it and it's perfect working as supposed to, many thanks.
This issue should now be resolved with #37. Merged and released in version 0.18.0
This crash happens again. I am using textTicker inside a flatList item. Current version of the lib is 1.3.0.
Description
After upgrading to 0.17.0 from 0.16.0, I'm getting these crashes as soon as a text ticker is rendered (as you can see after, it's before it even ticks as we use methods to start and stop the animation):
Usage
Environment