Send event to JS only if React initialized (#4668)

This commit is contained in:
Miguel Alatzar
2020-08-13 11:19:59 -07:00
committed by GitHub
parent c48ffd0f65
commit 66a8f8a55f

View File

@@ -172,7 +172,9 @@ public class CustomPushNotification extends PushNotification {
break;
}
notifyReceivedToJS();
if (mAppLifecycleFacade.isReactInitialized()) {
notifyReceivedToJS();
}
}
@Override