hybrid-navigation 2.17.9 → 2.17.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/build.gradle
CHANGED
|
@@ -33,5 +33,5 @@ dependencies {
|
|
|
33
33
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
34
34
|
implementation 'com.facebook.react:react-native:+'
|
|
35
35
|
// api project(':navigation')
|
|
36
|
-
api 'io.github.listenzz:AndroidNavigation:13.7.
|
|
36
|
+
api 'io.github.listenzz:AndroidNavigation:13.7.3'
|
|
37
37
|
}
|
|
@@ -13,6 +13,7 @@ import static com.reactnative.hybridnavigation.HBDEventEmitter.ON_COMPONENT_DISA
|
|
|
13
13
|
import static com.reactnative.hybridnavigation.HBDEventEmitter.ON_COMPONENT_RESULT;
|
|
14
14
|
|
|
15
15
|
import android.annotation.SuppressLint;
|
|
16
|
+
import android.app.Activity;
|
|
16
17
|
import android.content.pm.ActivityInfo;
|
|
17
18
|
import android.graphics.Color;
|
|
18
19
|
import android.os.Bundle;
|
|
@@ -147,7 +148,8 @@ public class ReactFragment extends HybridFragment implements ReactBridgeManager.
|
|
|
147
148
|
@Override
|
|
148
149
|
public void onStop() {
|
|
149
150
|
if (isRemoving() && forceScreenLandscape()) {
|
|
150
|
-
requireActivity()
|
|
151
|
+
Activity activity = requireActivity();
|
|
152
|
+
activity.getWindow().getDecorView().postDelayed(() -> activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT), 10);
|
|
151
153
|
}
|
|
152
154
|
super.onStop();
|
|
153
155
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hybrid-navigation",
|
|
3
3
|
"description": "React Native Navigation that supports seamless navigation between Native and React.",
|
|
4
|
-
"version": "2.17.
|
|
4
|
+
"version": "2.17.10",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
7
7
|
"react-native": "src/index",
|