-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
I fetch some data from url and while downloading I show loading view using Actions.popupLoadingView() in componentWillMount/componentDidMount. But after updating to version 0.3.4, Loading popup View does not show up anymore. But it does show when refresh button is pressed to re-download data from url again.
componentWillMount: function () {
this.fetchDataFromUrl();
},
refreshList: function() { //onPress function of some button and popUpLoadingView shows up.
this.setState({
networkError : false,
});
this.fetchDataFromUrl();
},
fetchDataFromUrl() {
Actions.popUpLoadingView({msg: 'Downloading....'}); //This does not show up
fetch(some_Url)
.then((response) => response.json())
.then((responseData) => {
console.log(responseData);
Actions.dismiss();
})
.catch((error) => {
console.warn('error ::: ' + error);
Actions.dismiss();
this.setState({
networkError: true,
});
})
.done(()=> {
});
Metadata
Metadata
Assignees
Labels
No labels