[ReactNative] Update core RN modules to work with React 0.14-beta1

This commit is contained in:
Ben Alpert committed 2015-07-23 18:07:59 -08:00
1 parent 710d29efae
commit e01f90784f
9 files changed
+78 -56

No files matched your search

@@ -85,6 +85,11 @@ function installConsoleErrorReporter() {
return;
}
var str = Array.prototype.map.call(arguments, stringifySafe).join(', ');
if (str.slice(0, 10) === '"Warning: ') {
// React warnings use console.error so that a stack trace is shown, but
// we don't (currently) want these to show a redbox
return;
}
var error: any = new Error('console.error: ' + str);
error.framesToPop = 1;
reportException(error, /* isFatal */ false);