react-native-notifications
Version:
Advanced Push Notifications (Silent, interactive notifications) for iOS & Android
21 lines (16 loc) • 396 B
text/typescript
import {Notification} from './Notification';
export class NotificationAndroid extends Notification {
constructor(payload: object) {
super(payload);
this.identifier = this.payload["google.message_id"];
}
get title(): string {
return this.payload.title;
}
get body(): string {
return this.payload.body;
}
get sound(): string {
return this.payload.sound;
}
}