` constructor(props) {
super(props);
this.getUser();
this.state = {
deeplinkUrl: '',
}
}
///Getting Deeplink URL
Linking.getInitialURL()
.then(url => {
console.log('Initial Url: ', url); // Here I can see my deeplink
this.setState({
deeplinkUrl: url,
});
console.log("deeplinkUrl: " + this.state.deeplinkUrl); ///Here always empty
});
Unable to update state. I need to use outside deeplink url, but this.setState is not working. I don't understand what's wrong