Skip to content

Commit 09b3fe1

Browse files
authored
Fix hanging android app issue
This is due to an unnecessary check causing events to get lost - therefore giving the appearance of apps hanging.
1 parent 39c7ec7 commit 09b3fe1

File tree

1 file changed

+2
-2
lines changed
  • android/src/main/java/io/fullstack/firestack

1 file changed

+2
-2
lines changed

android/src/main/java/io/fullstack/firestack/Utils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ public static void todoNote(final String tag, final String name, final Callback
3838
* send a JS event
3939
**/
4040
public static void sendEvent(final ReactContext context, final String eventName, final WritableMap params) {
41-
if (context != null && context.hasActiveCatalystInstance()) {
41+
if (context != null) {
4242
context
4343
.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
4444
.emit(eventName, params);
4545
} else {
46-
Log.d(TAG, "Waiting for CatalystInstance before sending event");
46+
Log.d(TAG, "Missing context - cannot send event!");
4747
}
4848
}
4949

0 commit comments

Comments
 (0)