mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-18 12:12:15 +08:00
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:
committed by
Facebook Github Bot
parent
1b694f43ba
commit
199d64083c
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user