INNER CODE UNIT · JavaScript
handlePopInitialNotification
zo0r/react-native-push-notification · index.js:93
const handlePopInitialNotification = (state) => {
if('active' !== state) {
return;
}
if (options.popInitialNotification === undefined || options.popInitialNotification === true) {
this.popInitialNotification(function(firstNotification) {
if(this.isPopInitialNotification) {
return;
}
this.isPopInitialNotification = true;
if (!firstNotification || false === firstNotification.userInteraction) {
return;
}
this._onNotification(firstNotification, true);