How to make RCTExceptionsManagerDelegate work

Viewed 9

I followed the instructions similar to these ones: https://github.com/facebook/react-native/issues/1418 to create RCTExceptionsManager with my implementation of RCTExceptionsManagerDelegate attached. Even though the module/RCTExceptionsManager are register by RN, none of the exceptions I tried ever triggered methods of RCTExceptionsManagerDelegate. When I register function with RCTAddLogFunction, my function does get called. RCTExceptionsManagerDelegate's methods, which supposed to provide richer information - never.

The exceptions I tried:

  • uncaught throw in index.js
  • trying to access a member of variable, set to undefined.

What am I missing? Do I need to do additional work on the JavaScript side of my code? Thanks

0 Answers
Related