Nativebase: How to pass datasource to List

Created on 26 May 2016  路  4Comments  路  Source: GeekyAnts/NativeBase

Hello

Great library, I was wondering how should I pass the data to List (since all of the examples are with static data)?

enhancement

Most helpful comment

@bsiddiqui When you pass dataArray and renderRow props to <List>, it uses <ListView> internally. So the performance should be more or less same.

All 4 comments

The <List /> component is not a subset of react-native's <ListView />. But you can use the .map function to iterate through your data dource.

Added in v0.5.0. Check the docs

@sanketsahusoft how does <List> perform vs. react-native's <ListView> for large amounts of dynamic data since it's just a subset of <View>?

@bsiddiqui When you pass dataArray and renderRow props to <List>, it uses <ListView> internally. So the performance should be more or less same.

Was this page helpful?
0 / 5 - 0 ratings