mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-21 04:11:50 +03:00
Removed settimeout referance
This commit is contained in:
parent
b14b20db48
commit
58ddfae060
@ -50,7 +50,7 @@ const RootContainer = () => (WrappedComponent) => {
|
||||
|
||||
_handleOpenURL = (event) => {
|
||||
this._handleDeepLink(event.url);
|
||||
}
|
||||
};
|
||||
|
||||
_handleDeepLink = async (url) => {
|
||||
if (!url) return;
|
||||
@ -116,7 +116,8 @@ const RootContainer = () => (WrappedComponent) => {
|
||||
}
|
||||
|
||||
if (profile || content) {
|
||||
setTimeout(() => {
|
||||
this.navigationTimeout = setTimeout(() => {
|
||||
clearTimeout(this.navigationTimeout);
|
||||
navigation.navigate({
|
||||
routeName,
|
||||
params,
|
||||
@ -176,10 +177,9 @@ const RootContainer = () => (WrappedComponent) => {
|
||||
|
||||
if (extra.parent_permlink || extra.permlink) {
|
||||
params = {
|
||||
author:
|
||||
extra.parent_permlink
|
||||
? extra.parent_author
|
||||
: pushNotification.customProperties.target,
|
||||
author: extra.parent_permlink
|
||||
? extra.parent_author
|
||||
: pushNotification.customProperties.target,
|
||||
permlink: extra.parent_permlink ? extra.parent_permlink : extra.permlink,
|
||||
};
|
||||
key = extra.parent_permlink ? extra.parent_permlink : extra.permlink;
|
||||
|
Loading…
Reference in New Issue
Block a user