-
Currently different new architectures are managed by an overarching flag My use case is to start adopting JSI and writing cross-platform native modules in C++ for my app (out-of-tree platform), so some core components using Fabric view is still experimental. I am wondering if this is feasible, I've tried the following solutions but neither work.
use_react_native!(
:path => '../node_modules/react-native',
:hermes_enabled => true,
:fabric_enabled => false, # ENV['RCT_NEW_ARCH_ENABLED'] == '1'
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
// https://github.com/facebook/react-native/blob/a9551641b47ebe9a032754fb0274b57c8ee18ea1/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm#L130-152
- (BOOL)turboModuleEnabled
{
return [self newArchEnabled];
}
- (BOOL)fabricEnabled
{
return [self newArchEnabled];
}
- (BOOL)bridgelessEnabled
{
return [self newArchEnabled];
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Why are you trying to enable only TurboModules without Fabric? The New Architecture is designed so you enable both TM, Fabric and Bridgeless mode together. We haven't tested different configuration combination so we cannot ensure it will work correctly. |
Beta Was this translation helpful? Give feedback.
Why are you trying to enable only TurboModules without Fabric? The New Architecture is designed so you enable both TM, Fabric and Bridgeless mode together. We haven't tested different configuration combination so we cannot ensure it will work correctly.