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

motogod picture motogod  ·  3Comments

ilkerceng picture ilkerceng  ·  3Comments

Tonacatecuhtli picture Tonacatecuhtli  ·  3Comments

kyleatblackfoot picture kyleatblackfoot  ·  3Comments

binzailani3136 picture binzailani3136  ·  3Comments