deanhet / react-native-text-ticker

React Native Text Ticker/Marquee Component
MIT License
444 stars 75 forks source link

Force scrolling? #115

Open gds3k3 opened 2 years ago

gds3k3 commented 2 years ago

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

Thank you.

deanhet commented 2 years ago

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.