Many React Native Developers share a misconception: always use a virtualized list component. It's like a silver bullet.
But that's just wrong. Sometimes, ScrollView is just better.
Recently, I built a Karaoke Lyrics component. At first, I directly used FlashList. The animations weren't overly complex (transform, color, opacity, width), and there were only ~50 items. Yet, despite adding tons of optimizations, it remained really laggy. The blank areas during scrolling were unacceptable.
After being stuck for two days, I was ready to give up. "Just try ScrollView, bro," I thought. Then the magic happened: I swapped FlashList for ScrollView
list.map(), and the UI instantly smoothed.
Don't guess, profile it.
#reactnative