Android, Flatlist, custom refresh control

Maybe we should always spread props?

Profile pictureToni Petrina
Published on 2024-05-221 min read
  • #react-native
  • #android

So apparently just passing a simple wrapper (don't ask why) control to Flatlist breaks Android.

A preview

If you inline the code, it just works.

A preview

The solution, thanks to Stack Overflow post is to simply pass additional, hidden props to the underlying control.

A preview

Happy coding!


Change code theme: