hybrid-navigation 2.13.7 → 2.13.8
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.
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
## This file must *NOT* be checked into Version Control Systems,
|
|
2
|
+
# as it contains information specific to your local configuration.
|
|
3
|
+
#
|
|
4
|
+
# Location of the SDK. This is only used by Gradle.
|
|
5
|
+
# For customization when using a Version Control System, please read the
|
|
6
|
+
# header note.
|
|
7
|
+
#Tue Sep 06 15:08:32 CST 2022
|
|
8
|
+
sdk.dir=/Users/listen/Library/Android/sdk
|
|
@@ -57,19 +57,11 @@ public class ReactAppCompatActivity extends AwesomeActivity implements DefaultHa
|
|
|
57
57
|
getReactBridgeManager().setViewHierarchyReady(true);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
private boolean styleInflated;
|
|
62
|
-
|
|
63
|
-
@Override
|
|
64
|
-
protected void onCustomStyle(@NonNull Style style) {
|
|
65
|
-
inflateStyle();
|
|
66
|
-
}
|
|
67
|
-
|
|
60
|
+
|
|
68
61
|
public void inflateStyle() {
|
|
69
62
|
Style style = getStyle();
|
|
70
63
|
GlobalStyle globalStyle = Garden.getGlobalStyle();
|
|
71
64
|
if (style != null && !isFinishing()) {
|
|
72
|
-
styleInflated = true;
|
|
73
65
|
FLog.i(TAG, "ReactAppCompatActivity#inflateStyle");
|
|
74
66
|
globalStyle.inflateStyle(this, style);
|
|
75
67
|
}
|
|
@@ -89,6 +81,7 @@ public class ReactAppCompatActivity extends AwesomeActivity implements DefaultHa
|
|
|
89
81
|
isFirstCallResume = true;
|
|
90
82
|
activityDelegate.onResume();
|
|
91
83
|
}
|
|
84
|
+
inflateStyle();
|
|
92
85
|
createMainComponent();
|
|
93
86
|
}
|
|
94
87
|
|
|
@@ -140,17 +133,6 @@ public class ReactAppCompatActivity extends AwesomeActivity implements DefaultHa
|
|
|
140
133
|
setActivityRootFragment(fragment);
|
|
141
134
|
}
|
|
142
135
|
|
|
143
|
-
@Override
|
|
144
|
-
public void setActivityRootFragment(@NonNull AwesomeFragment rootFragment) {
|
|
145
|
-
if (!styleInflated) {
|
|
146
|
-
inflateStyle();
|
|
147
|
-
if (!styleInflated) {
|
|
148
|
-
throw new IllegalStateException("Style hasn't inflated yet. Did you forgot to call `Navigation.setDefaultOptions` before `Navigation.setRoot` ?");
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
super.setActivityRootFragment(rootFragment);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
136
|
@Override
|
|
155
137
|
protected void setActivityRootFragmentSync(AwesomeFragment fragment) {
|
|
156
138
|
ReactBridgeManager bridgeManager = getReactBridgeManager();
|
|
@@ -183,7 +165,7 @@ public class ReactAppCompatActivity extends AwesomeActivity implements DefaultHa
|
|
|
183
165
|
isFirstCallResume = true;
|
|
184
166
|
activityDelegate.onResume();
|
|
185
167
|
}
|
|
186
|
-
|
|
168
|
+
|
|
187
169
|
ReactBridgeManager bridgeManager = getReactBridgeManager();
|
|
188
170
|
if (bridgeManager.hasPendingLayout()) {
|
|
189
171
|
FLog.i(TAG, "Set root Fragment from pending layout when resume.");
|
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.8",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
7
7
|
"react-native": "src/index",
|