Skip to content

Commit 9ad5b86

Browse files
committed
chore(android)!: forward-port to new architecture method
The method to forward-port to was added in react-native 0.65 so this is breaking but should not actually affect anyone BREAKING CHANGE: minimum required react-native now 0.65
1 parent 677d345 commit 9ad5b86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-native/android/src/main/java/io/invertase/notifee/NotifeeReactUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ static void sendEvent(String eventName, WritableMap eventMap) {
215215
try {
216216
ReactContext reactContext = getReactContext();
217217

218-
if (reactContext == null || !reactContext.hasActiveCatalystInstance()) {
218+
// hasActiveReactInstance method introduced in react-native 0.65 / August 2021
219+
if (reactContext == null || !reactContext.hasActiveReactInstance()) {
219220
return;
220221
}
221222

0 commit comments

Comments
 (0)