RefreshControl
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
下拉後可重新整理
async handleOnRefresh() {
this.fetchMail();
this.setState({refreshing: true});
this.setState({refreshing: false});
}
<Content
refreshControl={
<RefreshControl
onRefresh={() => this.handleOnRefresh()}
refreshing={this.state.refreshing}
progressBackgroundColor={'#fff'}
/>
}>
....