From ba4ed28cb00af2f409935c256b9eb95ccbb73dc4 Mon Sep 17 00:00:00 2001 From: Jack Pope Date: Wed, 18 Feb 2026 09:53:41 -0800 Subject: [PATCH] Add host instance pointer and text node feature flags (#55614) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55614 - enableFragmentRefsInstanceHandles - Enables a pointer on each element back to the FragmentInstances that control it. Needed to implement the common IntersectionObserver pattern of reusing IntersectionObservers across multiple callbacks. See more in https://github.com/facebook/react/pull/34935 - enableFragmentRefsTextNodes - This should be a noop on RN as unlike dom, text nodes are considered host components and already handled. Text without a `` wrapper throws an error. Changelog: [Internal] Reviewed By: christophpurrer Differential Revision: D93479122 fbshipit-source-id: 639369893c8aafc1d2bf0ffbdf4bf09fe6dca45c --- .../runtime/mocks/ReactNativeInternalFeatureFlags.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/private/react-native-fantom/runtime/mocks/ReactNativeInternalFeatureFlags.js b/private/react-native-fantom/runtime/mocks/ReactNativeInternalFeatureFlags.js index c05bbe3c1c2..67c28827265 100644 --- a/private/react-native-fantom/runtime/mocks/ReactNativeInternalFeatureFlags.js +++ b/private/react-native-fantom/runtime/mocks/ReactNativeInternalFeatureFlags.js @@ -16,4 +16,6 @@ module.exports = { // See https://github.com/facebook/react/pull/33161 for details. enableEagerAlternateStateNodeCleanup: true, enableFragmentRefs: true, + enableFragmentRefsInstanceHandles: true, + enableFragmentRefsTextNodes: true, };