Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ static void sendEvent(String eventName, WritableMap eventMap) {
try {
ReactContext reactContext = getReactContext(EventSubscriber.getContext());

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

Expand Down