hybrid-navigation 2.13.16 → 2.13.18

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.
@@ -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:12.5.8'
36
+ api 'io.github.listenzz:AndroidNavigation:12.5.13'
37
37
  }
@@ -5,6 +5,7 @@ import android.os.Bundle;
5
5
  import android.view.KeyEvent;
6
6
 
7
7
  import androidx.annotation.NonNull;
8
+ import androidx.fragment.app.Fragment;
8
9
 
9
10
  import com.facebook.common.logging.FLog;
10
11
  import com.facebook.infer.annotation.Assertions;
@@ -42,6 +43,10 @@ public class ReactAppCompatActivity extends AwesomeActivity implements DefaultHa
42
43
  ReactBridgeManager bridgeManager = getReactBridgeManager();
43
44
  bridgeManager.addReactModuleRegisterListener(this);
44
45
 
46
+ if (savedInstanceState != null) {
47
+ FLog.i(TAG, "ReactAppCompatActivity#re-create");
48
+ }
49
+
45
50
  if (isReactModuleRegisterCompleted()) {
46
51
  onReactModuleRegisterCompleted();
47
52
  }
@@ -71,7 +76,10 @@ public class ReactAppCompatActivity extends AwesomeActivity implements DefaultHa
71
76
  activityDelegate.onResume();
72
77
  }
73
78
  inflateStyle();
74
- createMainComponent();
79
+ Fragment fragment = getSupportFragmentManager().findFragmentById(android.R.id.content);
80
+ if (fragment == null) {
81
+ createMainComponent();
82
+ }
75
83
  }
76
84
 
77
85
  private void createMainComponent() {
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.13.16",
4
+ "version": "2.13.18",
5
5
  "main": "./lib/index.js",
6
6
  "typings": "./lib/index.d.ts",
7
7
  "react-native": "src/index",