mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-02 11:15:35 +03:00
Fixed #369
This commit is contained in:
parent
1f686bd849
commit
34c158d723
@ -14,6 +14,7 @@
|
|||||||
android:theme="@style/AppTheme">
|
android:theme="@style/AppTheme">
|
||||||
<activity
|
<activity
|
||||||
android:name=".MainActivity"
|
android:name=".MainActivity"
|
||||||
|
android:launchMode="singleTask"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:screenOrientation="portrait"
|
android:screenOrientation="portrait"
|
||||||
android:configChanges="keyboard|keyboardHidden|screenSize"
|
android:configChanges="keyboard|keyboardHidden|screenSize"
|
||||||
@ -26,8 +27,8 @@
|
|||||||
<action android:name="android.intent.action.VIEW" />
|
<action android:name="android.intent.action.VIEW" />
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
<category android:name="android.intent.category.BROWSABLE" />
|
<category android:name="android.intent.category.BROWSABLE" />
|
||||||
<data android:scheme="esteem" android:host="esteem" />
|
<data android:scheme="esteem" />
|
||||||
<data android:scheme="steemit" android:host="steemit" />
|
<data android:scheme="steemit" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
|
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
|
||||||
|
@ -33,15 +33,8 @@ const RootContainer = () => (WrappedComponent) => {
|
|||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
AppState.addEventListener('change', this._handleAppStateChange);
|
AppState.addEventListener('change', this._handleAppStateChange);
|
||||||
this._createPushListener();
|
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() {
|
componentWillUnmount() {
|
||||||
AppState.removeEventListener('change', this._handleAppStateChange);
|
AppState.removeEventListener('change', this._handleAppStateChange);
|
||||||
|
Loading…
Reference in New Issue
Block a user