Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
OwenDeng opened this issue Jul 4, 2019 · 0 comments

Comments

@OwenDeng
Copy link

OwenDeng commented Jul 4, 2019

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的就不会渲染出来了

@OwenDeng OwenDeng changed the title 请问为什么超过屏幕的数据渲染不出来? 请问为什么只会渲染10条数据,超过的部分渲染不出来? Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant