1

Im trying to receive an list of itens from firebase, including an image, wich will be rendered in a list.

The problem is, when the list gets too big an fall of the screen, the Refresh Controll stops working.

Working way, with the list full on screen

Not working, if pulled, makes this effect of "reached on max"


Render method

<View contentContainerStyle={{ flex: 1 }}>
    <ListView
      enableEmptySections
      dataSource={this.dataSource}
      renderRow={this.renderRow}
      refreshControl={
        <RefreshControl
          refreshing={this.state.refreshing}
          onRefresh={this.onRefresh.bind(this)}
        />
      }
    />
  </View>

onRefresh() {
    this.setState({ refreshing: true });
    this.props.eventsFetch();
  }

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.