Skip to content

请问为什么只会渲染10条数据,超过的部分渲染不出来? #37

Open
@OwenDeng

Description

@OwenDeng

image
<View style={{flex: 1}}>
<FlatList
style={{flex: 1}}
renderScrollComponent={
(props) => <ScrollView style={{flex: 1}}
refreshControl={<SmartRefreshControl
ref={ref => this.rc = ref}
renderHeader={}
onRefresh={() => {
setTimeout(() => {
this.rc && this.rc.finishRefresh();
}, 1000)
}}
/>}
>

}
renderItem={this._renderItem}
data={data}

            />
        </View>

我总共定义了13条数据,但是超过10的就不会渲染出来了

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions