appandflow / appandflow/react-native-masonry-list

Pull to refresh not working

Aperta
#25 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
171
Fork
45
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.