react native flatlist pull to refresh

JavaScript
// Make sure to also set the refreshing prop correctly.
<FlatList
	data={ this.state.FlatListItems }
  	onRefresh={() => this.onRefresh()}
  	refreshing={this.state.isFetching}
/>
Source

Also in JavaScript: