react-native/React/Executors
Pieter De Baets 21fda19ca9 Consistently handle startup errors
Summary:
If we use RCTLogError, we show a redbox with a native stacktrace before we can actually show the JS stacktrace (which is only done through dispatch_async). Instead use RCTLogWarn so its logged to console but not reported as a redbox.

Also fix call to RCTNSErrorFromJSErrorRef off the main thread RCTJSCExecutor.

Reviewed By: majak, mmmulani

Differential Revision: D3886813

fbshipit-source-id: 119d04858cb0c85c79e12ff8a79806711f8e0b27
2016-09-20 06:28:36 -07:00
..
RCTJSCErrorHandling.h Improve RCTNSErrorFromJSError 2016-09-16 06:28:48 -07:00
RCTJSCErrorHandling.m Improve RCTNSErrorFromJSError 2016-09-16 06:28:48 -07:00
RCTJSCExecutor.h Remove -[RCTJSExecutor errorForJSError:] 2016-09-02 17:43:37 -07:00
RCTJSCExecutor.mm Consistently handle startup errors 2016-09-20 06:28:36 -07:00
RCTJSCWrapper.h Remove unnecessary JSContextGetGlobalContext call 2016-09-16 06:28:48 -07:00
RCTJSCWrapper.mm Remove unnecessary JSContextGetGlobalContext call 2016-09-16 06:28:48 -07:00