File tree 4 files changed +7
-10
lines changed
renderer/componentregistry
4 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -316,6 +316,10 @@ bool enableFabricRenderer() override
316
316
{
317
317
return true ;
318
318
}
319
+ bool useFabricInterop () override
320
+ {
321
+ return true ;
322
+ }
319
323
bool useTurboModules () override
320
324
{
321
325
return true ;
Original file line number Diff line number Diff line change 10
10
namespace facebook ::react {
11
11
12
12
bool EmptyReactNativeConfig::getBool (const std::string& param) const {
13
- if (param == " react_fabric:enabled_automatic_interop_android" ) {
14
- return true ;
15
- }
16
13
return false ;
17
14
}
18
15
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ target_link_libraries(react_render_componentregistry
23
23
folly_runtime
24
24
glog_init
25
25
jsi
26
- react_config
27
26
react_debug
27
+ react_featureflags
28
28
react_render_core
29
29
react_render_debug
30
30
react_utils
Original file line number Diff line number Diff line change 9
9
10
10
#include " componentNameByReactViewName.h"
11
11
12
- #include < react/config/ReactNativeConfig.h>
13
12
#include < react/debug/react_native_assert.h>
13
+ #include < react/featureflags/ReactNativeFeatureFlags.h>
14
14
#include < react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
15
15
#include < react/renderer/components/legacyviewmanagerinterop/UnstableLegacyViewManagerAutomaticComponentDescriptor.h>
16
16
#include < react/renderer/components/legacyviewmanagerinterop/UnstableLegacyViewManagerAutomaticShadowNode.h>
@@ -84,11 +84,7 @@ const ComponentDescriptor& ComponentDescriptorRegistry::at(
84
84
}
85
85
86
86
if (it == _registryByName.end ()) {
87
- auto reactNativeConfig_ =
88
- contextContainer_->at <std::shared_ptr<const ReactNativeConfig>>(
89
- " ReactNativeConfig" );
90
- if (reactNativeConfig_->getBool (
91
- " react_fabric:enabled_automatic_interop_android" )) {
87
+ if (ReactNativeFeatureFlags::useFabricInterop ()) {
92
88
auto componentDescriptor = std::make_shared<
93
89
const UnstableLegacyViewManagerAutomaticComponentDescriptor>(
94
90
parameters_, unifiedComponentName);
You can’t perform that action at this time.
0 commit comments