From 0979168218d5d312c3fc94897d7838984720d99d Mon Sep 17 00:00:00 2001 From: CHANDRAMOHANNEGI Date: Sun, 16 Aug 2026 09:19:55 +0530 Subject: [PATCH] fix: export feature flags for virtualized lists --- packages/react-native/package.json | 4 ++++ .../Lists/__tests__/package-exports-test.js | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 packages/virtualized-lists/Lists/__tests__/package-exports-test.js diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 6d0af84fc364..5b60a2f47337 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -53,6 +53,10 @@ "types": null, "default": "./src/react-private-interface.js" }, + "./src/private/featureflags/ReactNativeFeatureFlags": { + "types": null, + "default": "./src/private/featureflags/ReactNativeFeatureFlags.js" + }, "./setup-env": "./src/setup-env.js", "./unstable-internals-do-not-use": { "react-native-unstable-internals": "./src/unstable-internals-do-not-use.d.ts", diff --git a/packages/virtualized-lists/Lists/__tests__/package-exports-test.js b/packages/virtualized-lists/Lists/__tests__/package-exports-test.js new file mode 100644 index 000000000000..c789bc48660a --- /dev/null +++ b/packages/virtualized-lists/Lists/__tests__/package-exports-test.js @@ -0,0 +1,17 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + * @noflow + */ + +'use strict'; + +test('resolves React Native feature flags through package exports', () => { + expect(() => + require.resolve('react-native/src/private/featureflags/ReactNativeFeatureFlags'), + ).not.toThrow(); +});