15

Which approach should I use in React Native where I need to implement a horizontal scroll like collection view? The look and feel are needed to be exactly similar to the native iOS UICollectionView.

shim
  • 9,289
  • 12
  • 69
  • 108
Pulkit Sharma
  • 545
  • 1
  • 6
  • 19

2 Answers2

5

You can use both FlatList and ScrollView. You just need to style your list in a correct way, for example, something like this to create a grid. Check UIExplorer to see how basic components work.

Radek Czemerys
  • 1,060
  • 7
  • 17
3

You can use the ListView component, make sure you set the horizontal property.

<ListView horizontal={true}
style={{flex:1}}
dataSource={this.state.dataSource}
renderRow={(data) => <Row/>}/>

Also, you can follow this link for reusable cells.

KP_G
  • 460
  • 4
  • 15