Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native Lists - RecyclerView & UITableView

I'm curious why React Native doesn't utilize the native platform list components such as RecyclerView for Android and UITableView (CollectionView) for iOS.

This could ideally provide a lot more feature support and improved performance then what is currently available.

Is there a reason the React Native lists are solely backed by ScrollViews instead?

like image 287
John Shelley Avatar asked Apr 04 '17 01:04

John Shelley


1 Answers

I couldn't personally tell you but quoting the Author.

UITableView API is not well suited for the asynchronous nature of ReactNative, and the resulting code was pretty gross, especially when trying to do smooth animations to grow the heights of rows, which we do in the groups app.

Source: Early discussion on the very point.

like image 64
Moss Palmer Avatar answered Sep 19 '22 00:09

Moss Palmer