萌新求助 Warning: `flexWrap: `wrap`` is not supported with the `VirtualizedList` components.Consider using `numColumns` with `FlatList` instead



  • 报的这个
    Warning: flexWrap: wrap`` is not supported with the VirtualizedList components.Consider using numColumns with FlatList instead

    然而我用的是:
    <SectionList
    sections = {mock}
    contentContainerStyle={[css.row,css.wrap]}
    pageSize={3}
    showsVerticalScrollIndicator={false}
    keyExtractor = {this._extraUniqueKey}
    renderSectionHeader={({section}) => <Text style={[styles.detailTittle,css.size16,css.paddLf10]}>{section.name}</Text>}
    renderItem={({item}) =><View style={[styles.detailList,css.flexCenter]}>
    <Thumbnail square size={100} source={require('../../../assets/goods/dianshi.jpg')} />
    <Text style={[css.size11,css.textCenter,css.color777]}>{item.name}</Text>
    </View>}

                             />
    

    想写成 !0_1513331809576_123.png



  • 就没人甩我吗 好伤心啊



  • @dyy1372130254511 说:

    renderSectionHeader

    同问,话说解决了没


Log in to reply