hybrid-navigation 4.0.4 → 4.0.5

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.
@@ -45,10 +45,14 @@ public class ReactFragment extends HybridFragment implements ReactManager.ReactB
45
45
  reactRootView = null;
46
46
  }
47
47
 
48
+ @SuppressLint("SourceLockedOrientationActivity")
48
49
  @Override
49
50
  public void onStop() {
50
51
  super.onStop();
51
52
  if (FragmentHelper.isRemoving(this) && forceScreenLandscape()) {
53
+ if (requireActivity().getRequestedOrientation() != ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) {
54
+ requireActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
55
+ }
52
56
  unmountReactView();
53
57
  }
54
58
  }
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": "4.0.4",
4
+ "version": "4.0.5",
5
5
  "main": "./dist/index",
6
6
  "module": "./dist/index",
7
7
  "types": "./dist/index.d.ts",