Add ability to customize error messages and stacks within the iOS redbox

Reviewed By: javache

Differential Revision: D3517605

fbshipit-source-id: a2efba80bbe1f6c74bf4e01f7807389962cb2463
This commit is contained in:
David Goldman
2016-07-18 11:27:55 -07:00
committed by Facebook Github Bot 0
parent 83336130ef
commit 9d2e6a2f8a
6 changed files with 124 additions and 1 deletions

View File

@@ -11,9 +11,11 @@
#import "RCTBridge.h"
#import "RCTBridgeModule.h"
#import "RCTErrorCustomizer.h"
@interface RCTRedBox : NSObject <RCTBridgeModule>
- (void)registerErrorCustomizer:(id<RCTErrorCustomizer>)errorCustomizer;
- (void)showError:(NSError *)error;
- (void)showErrorMessage:(NSString *)message;
- (void)showErrorMessage:(NSString *)message withDetails:(NSString *)details;