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;
|
2017-10-26 10:55:07 +00:00
|
|
|
+ (void)sendJSEvent:(RCTEventEmitter *)emitter name:(NSString *)name body:(NSDictionary *)body;
|
2018-01-03 20:00:38 +00:00
|
|
|
+ (void)sendJSEventWithAppName:(RCTEventEmitter *)emitter app:(FIRApp *)app name:(NSString *)name body:(NSDictionary *)body;
|
2017-10-26 10:55:07 +00:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|