From cb06f3b82a627fd028a17cee77effb1d6283938b Mon Sep 17 00:00:00 2001 From: Christoph Purrer Date: Mon, 28 Jul 2025 12:40:27 -0700 Subject: [PATCH] Bring back ContextContainer::Shared Summary: This brings back ContextContainer::Shared (but marks it as deprecated which was removed in https://github.com/facebook/react-native/pull/52750 Changelog: [General][Fixed] Bring back ContextContainer::Shared = std::shared_ptr alias Differential Revision: D79112609 --- .../react-native/ReactCommon/react/utils/ContextContainer.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/react-native/ReactCommon/react/utils/ContextContainer.h b/packages/react-native/ReactCommon/react/utils/ContextContainer.h index 41bcdebdfbd4..b0e8b62ed08e 100644 --- a/packages/react-native/ReactCommon/react/utils/ContextContainer.h +++ b/packages/react-native/ReactCommon/react/utils/ContextContainer.h @@ -25,6 +25,9 @@ namespace facebook::react { */ class ContextContainer final { public: + using Shared + [[deprecated("Use std::shared_ptr instead.")]] = + std::shared_ptr; /* * Registers an instance of the particular type `T` in the container * using the provided `key`. Only one instance can be registered per key.