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

hazmah0 picture hazmah0  ·  3Comments

ilkerceng picture ilkerceng  ·  3Comments

jackcbrown89 picture jackcbrown89  ·  3Comments

kk412027247 picture kk412027247  ·  3Comments