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

Refreshable ListView loading indicator stay visible. #85

Closed
temafedorov opened this issue Nov 9, 2016 · 2 comments
Closed

Refreshable ListView loading indicator stay visible. #85

temafedorov opened this issue Nov 9, 2016 · 2 comments

Comments

@temafedorov
Copy link

After pull to refresh action loading indicator has still visible.

render() {
    return (
      <Screen styleName="full-screen" style={{ marginTop: 70 }}>
        <ListView
          data={this.state.items}
          renderRow={item => this.renderRow(item)}
          onRefresh={() => {
            setTimeout(() => { 
              this.setState({
                loading: true,
                items: [{ name: 'test' }]
              });                              
            }, 300);
          }}
        />
      </Screen>
    );
  }

How i can hide refreshable component?

@MirGhojam
Copy link

you should add loading(bool) props too. Judging by your code it should be

<ListView
      loading={this.state.loading}
      ......
/>

@temafedorov
Copy link
Author

@MirGhojam Thank!

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

2 participants