Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why the listView don't appear after use the spinner ??everyone can help? #55

Closed
xinwanggit opened this issue Jul 25, 2017 · 1 comment
Closed

Comments

@xinwanggit
Copy link

xinwanggit commented Jul 25, 2017

I want to do:when switch to this page, visible===true, the spinner will exists. then when the fetch get the urls,the spinner disappear.. But why the listView can't appear, it's nothing

constructor(props) {
super(props);

this.state = {
  index:this.props.data,
  urls:null,
  visible:true,

.....

componentDidMount(){
InteractionManager.runAfterInteractions(()=>{
const that=this;
const params={index:that.state.index};
Fetchers.fetch(devicelisturl,'GET',params)
.then(function(set){
that.setState({
urls:set.items[0].domainBlacklist.split(','),
visible:false,
})
})
.catch(function(err){
Errhandler.err(err);
visible:false
})
})
}
..........

{rowdata} this._ondelete(rowID)}>

} />
@xinwanggit
Copy link
Author

I solved it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant