RefreshControl

下拉後可重新整理

Native base 要放在 content 裡面

  async handleOnRefresh() {
    this.fetchMail();
    this.setState({refreshing: true});
    this.setState({refreshing: false});
  }
          
            <Content
            refreshControl={
              <RefreshControl
                onRefresh={() => this.handleOnRefresh()}
                refreshing={this.state.refreshing}
                progressBackgroundColor={'#fff'}
              />
            }>
            ....

Last updated