diff --git a/React/Fabric/RCTFabricUIManagerWrapper.h b/React/Fabric/RCTFabricUIManagerWrapper.h index d40ef78c3..234668bb1 100644 --- a/React/Fabric/RCTFabricUIManagerWrapper.h +++ b/React/Fabric/RCTFabricUIManagerWrapper.h @@ -17,6 +17,7 @@ namespace facebook { namespace react { class FabricUIManager; +class ExceptionManager; } // namespace react } // namespace facebook @@ -29,6 +30,7 @@ using namespace facebook::react; @interface RCTFabricUIManagerWrapper : NSObject - (std::shared_ptr)manager; +- (std::shared_ptr)exceptionManager; @end diff --git a/React/Fabric/RCTFabricUIManagerWrapper.mm b/React/Fabric/RCTFabricUIManagerWrapper.mm index 811aa8d0a..d3b6839eb 100644 --- a/React/Fabric/RCTFabricUIManagerWrapper.mm +++ b/React/Fabric/RCTFabricUIManagerWrapper.mm @@ -7,18 +7,18 @@ #import "RCTFabricUIManagerWrapper.h" +#include #include - #include #include - #import "RCTFabricPlatformUIOperationManager.h" // This file contains experimental placeholders, nothing is finalized. @implementation RCTFabricUIManagerWrapper { std::shared_ptr _manager; + std::shared_ptr _exceptionManager; std::shared_ptr _platformUIOperationManager; } @@ -26,6 +26,7 @@ { self = [super init]; if (self) { + _exceptionManager = std::make_shared(); _platformUIOperationManager = std::make_shared(); _manager = std::make_shared(_platformUIOperationManager); } @@ -37,6 +38,11 @@ return _manager; } +- (std::shared_ptr)exceptionManager +{ + return _exceptionManager; +} + - (void)invalidate { }