2017-09-28 12:48:28 +00:00
|
|
|
#ifndef RNFirebaseFirestore_h
|
|
|
|
#define RNFirebaseFirestore_h
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
2017-10-03 16:23:28 +00:00
|
|
|
#if __has_include(<FirebaseFirestore/FirebaseFirestore.h>)
|
2017-09-28 12:48:28 +00:00
|
|
|
|
2017-10-03 16:23:28 +00:00
|
|
|
#import <FirebaseFirestore/FirebaseFirestore.h>
|
2017-09-28 12:48:28 +00:00
|
|
|
#import <React/RCTBridgeModule.h>
|
|
|
|
#import <React/RCTEventEmitter.h>
|
|
|
|
|
|
|
|
@interface RNFirebaseFirestore : RCTEventEmitter <RCTBridgeModule> {}
|
2018-03-04 23:47:10 +00:00
|
|
|
@property NSMutableDictionary *transactions;
|
|
|
|
@property dispatch_queue_t transactionQueue;
|
2017-09-28 12:48:28 +00:00
|
|
|
|
|
|
|
+ (void)promiseRejectException:(RCTPromiseRejectBlock)reject error:(NSError *)error;
|
|
|
|
|
2018-01-03 20:00:38 +00:00
|
|
|
+ (FIRFirestore *)getFirestoreForApp:(NSString *)appDisplayName;
|
2017-10-02 14:45:07 +00:00
|
|
|
+ (NSDictionary *)getJSError:(NSError *)nativeError;
|
2017-09-28 12:48:28 +00:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
#else
|
|
|
|
@interface RNFirebaseFirestore : NSObject
|
|
|
|
@end
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|