mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-30 22:12:42 +08:00
Hiding pre-bundled notification when not on dev mode
Summary: Notification "loading from pre-bundled file" won't show up anymore on non-dev mode. Reviewed By: adamjernst Differential Revision: D8874556 fbshipit-source-id: 8bfa63691beb65d16617409533f7a38dc00dc310
This commit is contained in:
committed by
Facebook Github Bot
parent
f5f27b3687
commit
edf71005b5
@@ -131,6 +131,10 @@ RCT_EXPORT_METHOD(hide)
|
||||
UIColor *backgroundColor;
|
||||
NSString *source;
|
||||
if (URL.fileURL) {
|
||||
// If dev mode is not enabled, we don't want to show this kind of notification
|
||||
#if !RCT_DEV
|
||||
return;
|
||||
#endif
|
||||
color = [UIColor grayColor];
|
||||
backgroundColor = [UIColor blackColor];
|
||||
source = @"pre-bundled file";
|
||||
|
||||
Reference in New Issue
Block a user