Skip to content

Commit a18a593

Browse files
authored
FIX 867: add deprecated hasActiveCatalystInstance for old RN (#868)
1 parent aeaea30 commit a18a593

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/android/app/src/main/java/com/wix/reactnativenotifications/core/ReactAppLifecycleFacade.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ public synchronized boolean isReactInitialized() {
4747
return false;
4848
}
4949

50-
return mReactContext.hasActiveReactInstance();
50+
try {
51+
return mReactContext.hasActiveCatalystInstance();
52+
} catch (Exception e) {
53+
return mReactContext.hasActiveReactInstance();
54+
}
5155
}
5256

5357
@Override

0 commit comments

Comments
 (0)