From 34c158d723f09c8bb5df2efbbff227860252f6a8 Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Wed, 30 Jan 2019 13:20:49 +0300 Subject: [PATCH] Fixed #369 --- android/app/src/main/AndroidManifest.xml | 5 +++-- src/screens/root/container/rootContainer.js | 9 +-------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 69f1675c1..134c01713 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -14,6 +14,7 @@ android:theme="@style/AppTheme"> - - + + diff --git a/src/screens/root/container/rootContainer.js b/src/screens/root/container/rootContainer.js index 63854d48a..eaf771322 100644 --- a/src/screens/root/container/rootContainer.js +++ b/src/screens/root/container/rootContainer.js @@ -33,14 +33,7 @@ const RootContainer = () => (WrappedComponent) => { componentDidMount() { AppState.addEventListener('change', this._handleAppStateChange); this._createPushListener(); - - if (Platform.OS === 'android') { - Linking.getInitialURL().then((url) => { - this._handleDeepLink(url); - }); - } else { - Linking.addEventListener('url', this._handleOpenURL); - } + Linking.addEventListener('url', this._handleOpenURL); } componentWillUnmount() {