react-native-text-ticker icon indicating copy to clipboard operation
react-native-text-ticker copied to clipboard

Force scrolling?

Open gds3k3 opened this issue 3 years ago • 1 comments

How can be forced the scrolling even when text is smaller than the container?

Thank you.

gds3k3 avatar Mar 04 '22 04:03 gds3k3

I guess from a UX point, the library isn't built to scroll text that doesn't need to be. You can 'fake' this by just making the string longer. So instead of writing it once on the view, make a function like repeat("shortString", 2) so the output is "shortString shortString" which would trigger it to scroll.

deanhet avatar Mar 07 '22 09:03 deanhet