Create src/fb_internal/ directory, initially migrate VirtualView (#50965)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/50965

While D72228547 has recently disallowed all `./src/*` subpath imports from React Native (functionally, `./src/private/*`), we have a number of APIs that are imported from Meta product code legitimately — e.g. as part of validating under-development React Native features internally in real Meta apps.

This diff defines a new, exported `./src/fb_internal/*` subpath via `package.json#exports`, which will allow us to expose select entry points for this purpose.

Changelog: [Internal]

Reviewed By: rubennorte

Differential Revision: D73770609

fbshipit-source-id: 397019669e565b95a86302ef30f80b65a17dcc0d
This commit is contained in:
Alex Hunt
2025-04-29 07:52:24 -07:00
committed by Facebook GitHub Bot
parent d2556c3cbd
commit 0968707ef7
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -2,6 +2,9 @@
; Ignore build cache folder
<PROJECT_ROOT>/packages/react-native/sdks/.*
; Ignore fb_internal modules
<PROJECT_ROOT>/packages/react-native/src/fb_internal/.*
; Ignore the codegen e2e tests
<PROJECT_ROOT>/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeEnumTurboModule.js
+1
View File
@@ -60,6 +60,7 @@
"./ReactApple/*": null,
"./ReactCommon/*": null,
"./sdks/*": null,
"./src/fb_internal/*": "./src/fb_internal/*",
"./src/*": null,
"./third-party-podspecs/*": null,
"./types/*": null,