Merge pull request #523 from esteemapp/bugfix/android-deep-link

Fixed #369
This commit is contained in:
uğur erdal 2019-01-30 14:47:13 +03:00 committed by GitHub
commit 9b212060d6
2 changed files with 4 additions and 10 deletions

View File

@ -14,6 +14,7 @@
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:launchMode="singleTask"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:configChanges="keyboard|keyboardHidden|screenSize"
@ -26,8 +27,8 @@
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="esteem" android:host="esteem" />
<data android:scheme="steemit" android:host="steemit" />
<data android:scheme="esteem" />
<data android:scheme="steemit" />
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />

View File

@ -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() {