React Native Lists - RecyclerView & UITableView
Asked Answered
L

2

6

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?

Lemur answered 4/4, 2017 at 1:18 Comment(0)
A
6

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.

Amanda answered 5/4, 2017 at 8:40 Comment(1)
Thanks for the reply! I knew it was somewhere in their issues but couldn't find it. (Would love to have a feature rich list with the native views, but I understand why they haven't worked on it yet)Lemur
K
0

For Recycler View in Android. Try this.

react-native-recycler-listview

Works ! Some gradle setup required though.

Kentiga answered 9/4, 2017 at 15:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.