diff --git a/packages/react-native/Libraries/ReactNative/BridgelessUIManager.js b/packages/react-native/Libraries/ReactNative/BridgelessUIManager.js index bcc3a984b22..38b63e7baa0 100644 --- a/packages/react-native/Libraries/ReactNative/BridgelessUIManager.js +++ b/packages/react-native/Libraries/ReactNative/BridgelessUIManager.js @@ -31,7 +31,7 @@ function getCachedConstants(): Object { module.exports = { getViewManagerConfig: (viewManagerName: string): mixed => { - if (ReactNativeFeatureFlags.enableNativeViewConfigsInBridgelessMode) { + if (ReactNativeFeatureFlags.enableNativeViewConfigsInBridgelessMode()) { return getCachedConstants()[viewManagerName]; } else { console.error( @@ -46,7 +46,7 @@ module.exports = { return unstable_hasComponent(viewManagerName); }, getConstants: (): Object => { - if (ReactNativeFeatureFlags.enableNativeViewConfigsInBridgelessMode) { + if (ReactNativeFeatureFlags.enableNativeViewConfigsInBridgelessMode()) { return getCachedConstants(); } else { console.error(errorMessageForMethod('getConstants'));