hybrid-navigation 2.13.15 → 2.13.16
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.
|
@@ -5,7 +5,6 @@ import android.os.Bundle;
|
|
|
5
5
|
import android.view.KeyEvent;
|
|
6
6
|
|
|
7
7
|
import androidx.annotation.NonNull;
|
|
8
|
-
import androidx.fragment.app.Fragment;
|
|
9
8
|
|
|
10
9
|
import com.facebook.common.logging.FLog;
|
|
11
10
|
import com.facebook.infer.annotation.Assertions;
|
|
@@ -42,20 +41,12 @@ public class ReactAppCompatActivity extends AwesomeActivity implements DefaultHa
|
|
|
42
41
|
activityDelegate.onCreate(savedInstanceState);
|
|
43
42
|
ReactBridgeManager bridgeManager = getReactBridgeManager();
|
|
44
43
|
bridgeManager.addReactModuleRegisterListener(this);
|
|
44
|
+
|
|
45
45
|
if (isReactModuleRegisterCompleted()) {
|
|
46
|
-
|
|
47
|
-
ensureViewHierarchy(bridgeManager);
|
|
46
|
+
onReactModuleRegisterCompleted();
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
|
-
|
|
51
|
-
private void ensureViewHierarchy(ReactBridgeManager bridgeManager) {
|
|
52
|
-
Fragment fragment = getSupportFragmentManager().findFragmentById(android.R.id.content);
|
|
53
|
-
if (fragment instanceof AwesomeFragment) {
|
|
54
|
-
FLog.i(TAG, "ReactAppCompatActivity#ensureViewHierarchy");
|
|
55
|
-
bridgeManager.setViewHierarchyReady(true);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
49
|
+
|
|
59
50
|
public void inflateStyle() {
|
|
60
51
|
Style style = getStyle();
|
|
61
52
|
GlobalStyle globalStyle = Garden.getGlobalStyle();
|
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.
|
|
4
|
+
"version": "2.13.16",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
7
7
|
"react-native": "src/index",
|