appandflow / appandflow/react-native-masonry-list

Pull to refresh not working

Open
#25 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
171
Forks
45
PR merge metrics
No merged PRs in 30d

Description

Pull to refresh feauture not working

` _onRefresh=()=> {
this.setState({refreshing: true});
const{username}=this.state;
this.props.getInspiration({username,offset:0})
.then(r=>{
this.setState({posts.data.posts,refreshing: false})
});
}`

` 1}
data={this.state.posts}
renderItem={(item)=>}
/>`

If i set refreshing=true, the loading indicator shows, however when I pull to call my _onRefresh function, nothing happens.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.