hybrid-navigation 2.14.0 → 2.14.1-rc.0

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.
package/README.md CHANGED
@@ -7,7 +7,7 @@ React Native Navigation that supports seamless navigation between Native and Rea
7
7
  - 使用原生导航组件实现 React Native 页面间的导航,不仅具有更优的性能,而且使得 RN 页面具有原生质感
8
8
  - 原生页面和 RN 页面共享路由, 使得它们之间相互跳转和传值轻而易举
9
9
  - 内置 drawer, tabs, stack 标准容器,同时支持自定义容器和导航
10
- - 支持 deep link
10
+ - 支持 Deep Link
11
11
 
12
12
  ![navigation-android](./screenshot/android.png)
13
13
 
@@ -208,7 +208,7 @@ public class GardenModule extends ReactContextBaseJavaModule {
208
208
  @Nullable
209
209
  private ReactAppCompatActivity getActiveActivity() {
210
210
  ReactContext reactContext = getReactApplicationContext();
211
- if (reactContext == null || !reactContext.hasActiveReactInstance()) {
211
+ if (reactContext == null || !reactContext.hasActiveCatalystInstance()) {
212
212
  return null;
213
213
  }
214
214
 
@@ -106,7 +106,7 @@ public class NavigationModule extends ReactContextBaseJavaModule {
106
106
  public void setRoot(final ReadableMap layout, final boolean sticky, final Callback callback) {
107
107
  UiThreadUtil.runOnUiThread(() -> {
108
108
  ReactContext reactContext = getReactApplicationContext();
109
- if (reactContext == null || !reactContext.hasActiveReactInstance()) {
109
+ if (reactContext == null || !reactContext.hasActiveCatalystInstance()) {
110
110
  FLog.w(TAG, "ReactContext hasn't active CatalystInstance, skip action `setRoot`");
111
111
  return;
112
112
  }
@@ -353,7 +353,7 @@ public class NavigationModule extends ReactContextBaseJavaModule {
353
353
  @Nullable
354
354
  private ReactAppCompatActivity getActiveActivity() {
355
355
  ReactContext reactContext = getReactApplicationContext();
356
- if (reactContext == null || !reactContext.hasActiveReactInstance()) {
356
+ if (reactContext == null || !reactContext.hasActiveCatalystInstance()) {
357
357
  return null;
358
358
  }
359
359
 
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.14.0",
4
+ "version": "2.14.1-rc.0",
5
5
  "main": "./lib/index.js",
6
6
  "typings": "./lib/index.d.ts",
7
7
  "react-native": "src/index",