brh55 / react-native-masonry

:raised_hands: A pure JS react-native component to render a masonry~ish layout for images with support for dynamic columns, progressive image loading, device rotation, on-press handlers, and headers/captions.
MIT License
1.32k stars 157 forks source link

Add refresh control support. #76

Closed christoph-jerolimov closed 6 years ago

christoph-jerolimov commented 6 years ago

Just delegate the refreshControl props.

Usage example:

<Masonry
  bricks={data}
  refreshControl={
    <RefreshControl
      refreshing={this.state.refreshing}
      onRefresh={this.refresh}
    />
  }
/>
brh55 commented 6 years ago

@jerolimov My apologies for missing this PR! Looks good, I'll go ahead and update the doc.