mirror of
https://github.com/zhigang1992/react-native-notifications.git
synced 2026-06-10 07:19:38 +08:00
21 lines
328 B
JavaScript
21 lines
328 B
JavaScript
/** A wrapper to align Android with iOS in terms on notification structure. */
|
|
export default class NotificationAndroid {
|
|
|
|
constructor(notification) {
|
|
this.data = notification;
|
|
}
|
|
|
|
getData() {
|
|
return this.data;
|
|
}
|
|
|
|
getTitle() {
|
|
return this.data.title;
|
|
}
|
|
|
|
getMessage() {
|
|
return this.data.body;
|
|
}
|
|
}
|
|
|