File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 11import { NativeModules , NativeEventEmitter } from 'react-native' ;
2+ import { Base } from './base' ;
3+ import promisify from '../utils/promisify' ;
4+
25const FirestackCloudMessaging = NativeModules . FirestackCloudMessaging ;
36const 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
You can’t perform that action at this time.
0 commit comments