React Native - view iOS collection

Which approach should I use in React-Native, where I need to implement horizontal scrolling, such as viewing a collection. Appearance and appearance should be exactly similar to Native iOS UICollectionView.

+4
source share
2 answers

You can use both ListView, and ScrollView. You just need to compose your list correctly, for example, to create a grid. Check out UIExplorer to see how the basic components work.

+2
source

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/>}/>

, .

+1

Source: https://habr.com/ru/post/1652174/


All Articles