-
Hello everyone, first of all thank you for taking me in to the community. I'm working on enabling TurboModules in our React-native 0.68.x App. The idea is to enable TurboModules, but leave all the existing Bridges (1p and 3p) as NativeModules. Only React-native itself would then run using TurboModules, and we would gradually upgrade existing Bridges. I was following the Enablement documentation. Application OverviewOur App is technically not using CocoaPods. Instead we have one parent Xcode project which links precompiled artifacts in form of For React-native artifacts, we're using a Dummy project with Cocoapods, solely to compile Our current tool-chain requires us to have this workaround. Missing NativeModulesOnce we used Again: All Bridges, that where part of the parent Xcode project where found just fine. All Bridges, which where linked as precompiled artifacts, just like we did it before I was able to successfully link them using UIManager ComponentsOnce we used
The issue was, that the UI Component Foo should internally resolve to FooManager, which did not happen. The following override of the
This tells me, that View Components, (most likely), which are not part of the parent Xcode project, are not resolving in their expected Foo/FooManager relationship. RCTConvert ExtensionsOnce we used
I have yet to find an elegant solution for this problem. My assumption is, that once those implementations are part of the parent Xcode project, it should work just fine. SummaryMy hypothesis is, that this all leads down to us fully missing out on the concept of auto-linking. Additionally, in the Cocoapods world, all files are available as source files, while we're providing pre-compiled artifacts. Is my hypothesis correct? Or what could be the reason, why the described issues and their solutions occurred? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The solution for the missing We still have to declare |
Beta Was this translation helpful? Give feedback.
-
What you're attempting to do is not recommended. The New Architecture is currently experimental and we support it only in the latest stable version (i.e. 0.72). There has been a number of highly significant changes between New Arch in 0.68 and 0.72, which makes the whole experience so different. So I highly suggest you that you first update RN version to the latest stable, and then start exploring the New Architecture. |
Beta Was this translation helpful? Give feedback.
What you're attempting to do is not recommended. The New Architecture is currently experimental and we support it only in the latest stable version (i.e. 0.72). There has been a number of highly significant changes between New Arch in 0.68 and 0.72, which makes the whole experience so different. So I highly suggest you that you first update RN version to the latest stable, and then start exploring the New Architecture.