React-native-elements: <FlatList/> support for <List/>

Created on 22 Nov 2017  ·  3Comments  ·  Source: react-native-elements/react-native-elements

is there any reason why it's not support FlatList yet ?

❔Question

Most helpful comment

@kubido The List component is just a wrapper with some styling around the children. Actually, you can use it with everything you want, not just a list. So yes, you can use it with a FlatList doing the following:

<List>
  <FlatList
    …
  />
</List>

All 3 comments

@kubido The List component is just a wrapper with some styling around the children. Actually, you can use it with everything you want, not just a list. So yes, you can use it with a FlatList doing the following:

<List>
  <FlatList
    …
  />
</List>

It could be better to use <FlatList> instead of <ListView> as the latter one is deprecated now.

@lijunle He is using <List> component not <ListView />

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iRoachie picture iRoachie  ·  3Comments

guitar9 picture guitar9  ·  3Comments

Slapbox picture Slapbox  ·  3Comments

xavier-villelegier picture xavier-villelegier  ·  3Comments

pacozaa picture pacozaa  ·  3Comments