hybrid-navigation 2.16.6 → 2.16.7
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.
|
@@ -44,7 +44,9 @@ public class ReactFragment extends HybridFragment implements ReactBridgeManager.
|
|
|
44
44
|
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
|
45
45
|
View view = inflater.inflate(R.layout.nav_fragment_react, container, false);
|
|
46
46
|
reactViewHolder = view.findViewById(R.id.react_content);
|
|
47
|
-
|
|
47
|
+
if (isReactModuleRegisterCompleted()) {
|
|
48
|
+
mountReactView();
|
|
49
|
+
}
|
|
48
50
|
return view;
|
|
49
51
|
}
|
|
50
52
|
|
|
@@ -214,9 +216,6 @@ public class ReactFragment extends HybridFragment implements ReactBridgeManager.
|
|
|
214
216
|
}
|
|
215
217
|
|
|
216
218
|
private void initReactRootView() {
|
|
217
|
-
if (!isReactModuleRegisterCompleted()) {
|
|
218
|
-
throw new IllegalStateException("[Navigation] React Component 还没有注册完毕。");
|
|
219
|
-
}
|
|
220
219
|
reactRootView = createReactRootView();
|
|
221
220
|
reactRootView.startReactApplication(getReactInstanceManager(), getModuleName(), getProps());
|
|
222
221
|
}
|
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.16.
|
|
4
|
+
"version": "2.16.7",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
7
7
|
"react-native": "src/index",
|