Send event to JS only if React initialized (#4668)
This commit is contained in:
parent
c48ffd0f65
commit
66a8f8a55f
1 changed files with 3 additions and 1 deletions
|
|
@ -172,7 +172,9 @@ public class CustomPushNotification extends PushNotification {
|
|||
break;
|
||||
}
|
||||
|
||||
notifyReceivedToJS();
|
||||
if (mAppLifecycleFacade.isReactInitialized()) {
|
||||
notifyReceivedToJS();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in a new issue