From 58ddfae0609ef9920fcc03bd3593bd0714520271 Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Tue, 19 Feb 2019 12:00:32 +0300 Subject: [PATCH] Removed settimeout referance --- src/screens/root/container/rootContainer.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/screens/root/container/rootContainer.js b/src/screens/root/container/rootContainer.js index 62fce3991..a9e378068 100644 --- a/src/screens/root/container/rootContainer.js +++ b/src/screens/root/container/rootContainer.js @@ -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;