mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-25 22:10:10 +00:00
2e592bc101
React Native 0.13.0 fixes the bug we experienced by using const.
22 lines
366 B
JavaScript
22 lines
366 B
JavaScript
'use strict';
|
|
|
|
const constants = require('./constants');
|
|
|
|
const {keys} = constants;
|
|
|
|
module.exports = {
|
|
create,
|
|
};
|
|
|
|
class Notification {}
|
|
|
|
function create(realmId, info) {
|
|
let notification = new Notification();
|
|
|
|
notification[keys.realm] = realmId;
|
|
notification[keys.id] = info.id;
|
|
notification[keys.type] = info.type;
|
|
|
|
return notification;
|
|
}
|