File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { NativeModules , NativeEventEmitter } from 'react-native' ;
2
+ import { Base } from './base' ;
3
+ import promisify from '../utils/promisify' ;
4
+
2
5
const FirestackCloudMessaging = NativeModules . FirestackCloudMessaging ;
3
6
const FirestackCloudMessagingEvt = new NativeEventEmitter ( FirestackCloudMessaging ) ;
4
7
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 {
8
12
constructor ( firestack , options = { } ) {
9
13
super ( firestack , options ) ;
10
14
}
@@ -18,7 +22,7 @@ export class CloudMessaging extends Base {
18
22
return promisify ( ( ) => sub , FirestackCloudMessaging ) ( sub ) ;
19
23
}
20
24
21
- // android & ios api
25
+ // android & ios api dfgsdfs
22
26
onMessageReceived ( ...args ) {
23
27
return this . onMessage ( ...args ) ;
24
28
}
@@ -129,5 +133,3 @@ export class CloudMessaging extends Base {
129
133
this . _off ( 'FirestackUpstreamSend' ) ;
130
134
}
131
135
}
132
-
133
- export default CloudMessaging
You can’t perform that action at this time.
0 commit comments