Skip to content

PopUp View can't call programatically.... #25

@pmpSalween

Description

@pmpSalween

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions