Stop throwing yellew boxes when we warn from native

Summary: This caused a bunch of stuff to break, reverting and will fix the problems before committing next time.

Reviewed By: fkgozali

Differential Revision: D4363398

fbshipit-source-id: 55146c9da998f6a3883307c36422a9d440ea7f52
This commit is contained in:
Mehdi Mulani
2016-12-27 10:39:58 -08:00
committed by Facebook Github Bot
parent 1b694f43ba
commit 199d64083c

View File

@@ -33,9 +33,8 @@ class RCTLog {
logFn,
'Level "' + level + '" not one of ' + Object.keys(levelsMap)
);
if (typeof global.nativeLoggingHook === 'undefined' || level === 'warn') {
if (typeof global.nativeLoggingHook === 'undefined') {
// We already printed in xcode, so only log here if using a js debugger
// or if we're trying to send a yellow box from native down.
console[logFn].apply(console, args);
}