hi i am setting my state in componentdidmount life cycle..but in image url nothing is setting but when i alert it gives my url here is my code where in setting state..
componentDidMount(){
ls.get("savedata").then(data => { this.setState({ name: data.user.name },()=>{alert(this.state.name)}); });
ls.get("savedata").then(data => { this.setState({ image: data.user.profile_photo },()=>alert(this.state.image)); });
}
here is view where in using image component
<Image source={{uri:this.state.image}}style={{width: 130, height: 110}}