Hi! Does React Native Babylon support the new react native architecture?
Hi @Narek_Avanesyan and welcome to the forum!
As you can see in this page : GitHub - BabylonJS/BabylonReactNative: Build React Native applications with the power of Babylon Native
BRN supports React Native 0.72. I believe new architecture has been released with 0.71. Let me know if I miss something.
By default, the new architecture of React Native is disabled, and you need to enable it in order to use it.
After enabling it, I received this message on both Android and iOS.
Looks like something is missing. Do you have experience with RN New architecture @ryantrem ?
We need to make changes to have BRN support the new architecture (TurboModules and Fabric). Docs start here: Prerequisites for Libraries · React Native
It is possible to make a RN module support both the old and the new architecture so it will work with either. Several RN OSS projects have done this, so there are examples we can follow.
Also, there is now a compatibility layer to enable RN modules that have not been migrated in the new architecture. Not everything is supported, but maybe everything that BRN uses. Someone should try it out: New Renderer Interop Layer · reactwg/react-native-new-architecture · Discussion #135 · GitHub
I’ve open a github issue to keep track React Native New Architecture · Issue #595 · BabylonJS/BabylonReactNative · GitHub