hybrid-navigation 2.16.2 → 2.16.4

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:13.6.2'
36
+ api 'io.github.listenzz:AndroidNavigation:13.6.3'
37
37
  }
@@ -47,6 +47,13 @@ public class ReactFragment extends HybridFragment implements ReactBridgeManager.
47
47
  return view;
48
48
  }
49
49
 
50
+ @Override
51
+ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
52
+ super.onViewCreated(view, savedInstanceState);
53
+ // 这个时候 toolbar 才创建好
54
+ initReactTitleView();
55
+ }
56
+
50
57
  @Override
51
58
  protected boolean extendedLayoutIncludesToolbar() {
52
59
  int color = mStyle.getToolbarBackgroundColor();
@@ -129,7 +136,6 @@ public class ReactFragment extends HybridFragment implements ReactBridgeManager.
129
136
 
130
137
  private void mountReactView() {
131
138
  initReactRootView();
132
- initReactTitleView();
133
139
  getReactBridgeManager().addReactBridgeReloadListener(this);
134
140
  }
135
141
 
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.2",
4
+ "version": "2.16.4",
5
5
  "main": "./lib/index.js",
6
6
  "typings": "./lib/index.d.ts",
7
7
  "react-native": "src/index",