2017-10-26 10:55:07 +00:00
|
|
|
#ifndef RNFirebaseUtil_h
|
|
|
|
#define RNFirebaseUtil_h
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import <React/RCTEventEmitter.h>
|
2018-01-03 20:00:38 +00:00
|
|
|
#import <Firebase.h>
|
2017-10-26 10:55:07 +00:00
|
|
|
|
|
|
|
@interface RNFirebaseUtil : NSObject
|
|
|
|
|
2018-01-03 20:00:38 +00:00
|
|
|
+ (FIRApp *)getApp:(NSString *)appDisplayName;
|
|
|
|
+ (NSString *)getAppName:(NSString *)appDisplayName;
|
|
|
|
+ (NSString *)getAppDisplayName:(NSString *)appName;
|
2018-02-02 12:05:51 +00:00
|
|
|
+ (void)sendJSEvent:(RCTEventEmitter *)emitter name:(NSString *)name body:(id)body;
|
|
|
|
+ (void)sendJSEventWithAppName:(RCTEventEmitter *)emitter app:(FIRApp *)app name:(NSString *)name body:(id)body;
|
2017-10-26 10:55:07 +00:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|