Post

I think I found a way to make a React Native list component with significantly better performance than FlashList, with 100% javascript. I'm still testing it but as far as I can tell there’s no pitfalls or issues… It just requires the new architecture for synchronous onLayout.

It’s basically a recycler view implemented in JS, using the fine grained reactivity features of Legend State to minimize renders. Synchronous onLayout in the new architecture lets elements be measured and positioned synchronously as they render. Flashlight comparison:

0 reposts14 likes