2017-03-09 15:26:28 +00:00
|
|
|
#ifndef RNFirebaseDatabase_h
|
|
|
|
#define RNFirebaseDatabase_h
|
|
|
|
|
2017-05-05 09:46:22 +01:00
|
|
|
#import <React/RCTBridgeModule.h>
|
2017-03-09 15:26:28 +00:00
|
|
|
|
2017-05-25 16:00:12 +01:00
|
|
|
#if __has_include(<FirebaseDatabase/FIRDatabase.h>)
|
2017-05-31 15:53:08 +01:00
|
|
|
#import <React/RCTEventEmitter.h>
|
2017-03-09 15:26:28 +00:00
|
|
|
|
2017-05-31 15:53:08 +01:00
|
|
|
@interface RNFirebaseDatabase : RCTEventEmitter<RCTBridgeModule> {}
|
2017-03-09 15:26:28 +00:00
|
|
|
@property NSMutableDictionary *dbReferences;
|
2017-03-25 00:59:27 +00:00
|
|
|
@property NSMutableDictionary *transactions;
|
|
|
|
@property dispatch_queue_t transactionQueue;
|
2017-05-25 16:00:12 +01:00
|
|
|
@end
|
2017-03-09 15:26:28 +00:00
|
|
|
|
2017-05-25 16:00:12 +01:00
|
|
|
#else
|
2017-05-31 15:53:08 +01:00
|
|
|
@interface RNFirebaseDatabase : NSObject<RCTBridgeModule> {}
|
2017-03-09 15:26:28 +00:00
|
|
|
@end
|
2017-05-25 16:00:12 +01:00
|
|
|
#endif
|
2017-03-09 15:26:28 +00:00
|
|
|
|
|
|
|
#endif
|