Created
August 13, 2026 13:35
-
-
Save huntie/0523e2dd114dacf904d28211ad6b67be to your computer and use it in GitHub Desktop.
react-private-interface-featureflags.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/packages/react-native/src/react-private-interface.js b/packages/react-native/src/react-private-interface.js | |
| --- a/packages/react-native/src/react-private-interface.js | |
| +++ b/packages/react-native/src/react-private-interface.js | |
| @@ -48,6 +48,7 @@ | |
| import typeof deepFreezeAndThrowOnMutationInDev from '../Libraries/Utilities/deepFreezeAndThrowOnMutationInDev'; | |
| import typeof deepDiffer from '../Libraries/Utilities/differ/deepDiffer'; | |
| import typeof Platform from '../Libraries/Utilities/Platform'; | |
| +import typeof * as ReactNativeFeatureFlags from './private/featureflags/ReactNativeFeatureFlags'; | |
| import typeof dispatchNativeEvent from './private/renderer/events/dispatchNativeEvent'; | |
| import typeof CustomEvent from './private/webapis/dom/events/CustomEvent'; | |
| @@ -69,6 +70,9 @@ | |
| get RCTEventEmitter(): RCTEventEmitter { | |
| return require('../Libraries/EventEmitter/RCTEventEmitter').default; | |
| }, | |
| + get ReactNativeFeatureFlags(): ReactNativeFeatureFlags { | |
| + return require('./private/featureflags/ReactNativeFeatureFlags'); | |
| + }, | |
| get ReactNativeViewConfigRegistry(): ReactNativeViewConfigRegistry { | |
| return require('../Libraries/Renderer/shims/ReactNativeViewConfigRegistry'); | |
| }, | |
| diff --git a/packages/react-native/src/react-private-interface.js.flow b/packages/react-native/src/react-private-interface.js.flow | |
| --- a/packages/react-native/src/react-private-interface.js.flow | |
| +++ b/packages/react-native/src/react-private-interface.js.flow | |
| @@ -23,6 +23,7 @@ | |
| export {default as ExceptionsManager} from '../Libraries/Core/ExceptionsManager'; | |
| export {default as Platform} from '../Libraries/Utilities/Platform'; | |
| export {default as RCTEventEmitter} from '../Libraries/EventEmitter/RCTEventEmitter'; | |
| +export * as ReactNativeFeatureFlags from './private/featureflags/ReactNativeFeatureFlags'; | |
| export * as ReactNativeViewConfigRegistry from '../Libraries/Renderer/shims/ReactNativeViewConfigRegistry'; | |
| export {default as TextInputState} from '../Libraries/Components/TextInput/TextInputState'; | |
| export {default as UIManager} from '../Libraries/ReactNative/UIManager'; | |
| diff --git a/packages/virtualized-lists/Lists/VirtualizedList.js b/packages/virtualized-lists/Lists/VirtualizedList.js | |
| --- a/packages/virtualized-lists/Lists/VirtualizedList.js | |
| +++ b/packages/virtualized-lists/Lists/VirtualizedList.js | |
| @@ -64,7 +64,7 @@ | |
| View, | |
| findNodeHandle, | |
| } from 'react-native'; | |
| -import * as ReactNativeFeatureFlags from 'react-native/src/private/featureflags/ReactNativeFeatureFlags'; | |
| +import {ReactNativeFeatureFlags} from 'react-native/react-private-interface'; | |
| export type {ListRenderItemInfo, ListRenderItem, Separators}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment