From daeb6e99abbca2b6395a9a703d2b0bb9e5091fb7 Mon Sep 17 00:00:00 2001 From: Christoph Purrer Date: Mon, 28 Jul 2025 17:21:34 -0700 Subject: [PATCH] Bring back ContextContainer::Shared (#52889) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52889 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 Reviewed By: lenaic Differential Revision: D79112609 fbshipit-source-id: 1cb9114b98d745b846d5ddc56a01786527049e50 --- .../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 41bcdebdfbd..b0e8b62ed08 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.