INNER CODE UNIT · JavaScript
NotificationsComponent
zo0r/react-native-push-notification · component/index.android.js:13
let NotificationsComponent = function() {
};
NotificationsComponent.prototype.getInitialNotification = function () {
return RNPushNotification.getInitialNotification()
.then(function (notification) {
if (notification && notification.dataJSON) {
return JSON.parse(notification.dataJSON);
}
return null;
});
};
NotificationsComponent.prototype.requestPermissions = function() {
RNPushNotification.requestPermissions();
};