React Native中renderScrollComponent上的ListView网格

React Native中renderScrollComponent上的ListView网格,listview,grid,react-native,Listview,Grid,React Native,我的问题与你的基本相同。我在一个简单的列表视图(就像在链接的问题中一样)上使用了网格视图,但在使用renderScrollComponent时无法使用它 我的代码如下所示: <ListView ref="ListView" contentContainerStyle={styles.list} dataSource={ this.state.dataSource } renderRow={this.renderCategories} renderScrollCompon

我的问题与你的基本相同。我在一个简单的
列表视图
(就像在链接的问题中一样)上使用了网格视图,但在使用
renderScrollComponent
时无法使用它

我的代码如下所示:

<ListView
  ref="ListView"
  contentContainerStyle={styles.list}
  dataSource={ this.state.dataSource }
  renderRow={this.renderCategories}
  renderScrollComponent={props => (
<ParallaxScrollView
    *start of parallax component*
当我注释掉
渲染器CrollComponent
时,网格工作正常。因此,我的问题是如何在
渲染器CrollComponent
中创建网格?我必须在某个地方应用特定的样式吗

(注意,我在
renderScrollComponent
中对视差视图使用repo

list: {
  flexDirection: 'row',
  flexWrap: 'wrap'
},
item: {
  flexDirection: 'row',
  margin: 3,
  width: 120
},