2017-03-09 15:26:28 +00:00
|
|
|
#ifndef RNFirebase_h
|
|
|
|
#define RNFirebase_h
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
2017-05-05 08:46:22 +00:00
|
|
|
#if __has_include(<React/RCTEventDispatcher.h>)
|
|
|
|
#import <React/RCTEventDispatcher.h>
|
|
|
|
#else // Compatibility for RN version < 0.40
|
2017-03-09 15:26:28 +00:00
|
|
|
#import "RCTEventDispatcher.h"
|
2017-05-05 08:46:22 +00:00
|
|
|
#endif
|
|
|
|
#if __has_include(<React/RCTEventEmitter.h>)
|
|
|
|
#import <React/RCTEventEmitter.h>
|
|
|
|
#else // Compatibility for RN version < 0.40
|
2017-03-09 15:26:28 +00:00
|
|
|
#import "RCTEventEmitter.h"
|
2017-05-05 08:46:22 +00:00
|
|
|
#endif
|
2017-05-09 12:53:05 +00:00
|
|
|
#if __has_include(<React/Base/RCTBridgeModule.h>)
|
|
|
|
#import <React/Base/RCTBridgeModule.h>
|
2017-05-05 08:46:22 +00:00
|
|
|
#else // Compatibility for RN version < 0.40
|
|
|
|
#import "RCTBridgeModule.h"
|
|
|
|
#endif
|
2017-03-09 15:26:28 +00:00
|
|
|
|
|
|
|
@interface RNFirebase : RCTEventEmitter <RCTBridgeModule> {
|
|
|
|
}
|
|
|
|
|
|
|
|
// + (void) registerForNotification:(NSString *) typeStr andToken:(NSData *)deviceToken;
|
|
|
|
+ (void) setup:(UIApplication *) application
|
|
|
|
withLaunchOptions: (NSDictionary *) launchOptions;
|
|
|
|
|
|
|
|
+ (id) sharedInstance;
|
|
|
|
|
|
|
|
- (void) debugLog:(NSString *)title
|
|
|
|
msg:(NSString *)msg;
|
|
|
|
|
|
|
|
- (void) sendJSEvent:(NSString *)title
|
|
|
|
props:(NSDictionary *)props;
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic) BOOL debug;
|
|
|
|
@property (atomic) BOOL configured;
|
|
|
|
@property (nonatomic, strong) NSDictionary *configuration;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|