2017-03-09 15:26:28 +00:00
|
|
|
#ifndef RNFirebaseErrors_h
|
|
|
|
#define RNFirebaseErrors_h
|
|
|
|
|
2017-05-05 08:46:22 +00:00
|
|
|
#if __has_include(<React/RCTBridgeModule.h>)
|
|
|
|
#import <React/RCTBridgeModule.h>
|
|
|
|
#else // Compatibility for RN version < 0.40
|
2017-03-09 15:26:28 +00:00
|
|
|
#import "RCTBridgeModule.h"
|
2017-05-05 08:46:22 +00:00
|
|
|
#endif
|
2017-03-09 15:26:28 +00:00
|
|
|
#import "Firebase.h"
|
|
|
|
|
|
|
|
@interface RNFirebaseErrors : NSObject <RCTBridgeModule> {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
+ (void) handleException:(NSException *)exception
|
|
|
|
withCallback:(RCTResponseSenderBlock)callback;
|
|
|
|
|
|
|
|
+ (NSDictionary *) handleFirebaseError:(NSString *) name
|
|
|
|
error:(NSError *) error
|
|
|
|
withUser:(FIRUser *) user;
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|