File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ - (RCTImageLoaderCancellationBlock)loadImageForURL:(NSURL *)imageURL
105105 completionHandler (nil , image);
106106 } else {
107107 NSString *message = [NSString stringWithFormat: @" Could not find image named %@ " , imageName];
108+ RCTLogWarn (@" %@ " , message);
108109 completionHandler (RCTErrorWithMessage (message), nil );
109110 }
110111 });
Original file line number Diff line number Diff line change @@ -33,10 +33,12 @@ class RCTLog {
3333 logFn ,
3434 'Level "' + level + '" not one of ' + Object . keys ( levelsMap )
3535 ) ;
36- if ( typeof global . nativeLoggingHook === 'undefined' ) {
36+ if ( typeof global . nativeLoggingHook === 'undefined' || level === 'warn' ) {
3737 // We already printed in xcode, so only log here if using a js debugger
38+ // or if we're trying to send a yellow box from native down.
3839 console [ logFn ] . apply ( console , args ) ;
3940 }
41+
4042 return true ;
4143 }
4244}
You can’t perform that action at this time.
0 commit comments