Skip to content

Commit 2d680c3

Browse files
committed
renamed and cleaned up cloud messaging module - inline with web api
1 parent 6049d07 commit 2d680c3

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

lib/modules/cloudmessaging.js lib/modules/messaging.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import { NativeModules, NativeEventEmitter } from 'react-native';
2+
import { Base } from './base';
3+
import promisify from '../utils/promisify';
4+
25
const FirestackCloudMessaging = NativeModules.FirestackCloudMessaging;
36
const FirestackCloudMessagingEvt = new NativeEventEmitter(FirestackCloudMessaging);
47

5-
import promisify from '../utils/promisify'
6-
import { Base, ReferenceBase } from './base'
7-
export class CloudMessaging extends Base {
8+
/**
9+
* @class Messaging
10+
*/
11+
export class Messaging extends Base {
812
constructor(firestack, options = {}) {
913
super(firestack, options);
1014
}
@@ -18,7 +22,7 @@ export class CloudMessaging extends Base {
1822
return promisify(() => sub, FirestackCloudMessaging)(sub);
1923
}
2024

21-
// android & ios api
25+
// android & ios api dfgsdfs
2226
onMessageReceived(...args) {
2327
return this.onMessage(...args);
2428
}
@@ -129,5 +133,3 @@ export class CloudMessaging extends Base {
129133
this._off('FirestackUpstreamSend');
130134
}
131135
}
132-
133-
export default CloudMessaging

0 commit comments

Comments
 (0)