react-native-firebase/ios/RNFirebase/RNFirebaseErrors.h

24 lines
593 B
C
Raw Normal View History

2017-03-09 15:26:28 +00:00
#ifndef RNFirebaseErrors_h
#define RNFirebaseErrors_h
#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"
#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