Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow DefaultReactHost to register C++ view managers when DefaultComp…
…onentsRegistry is not used. Summary: Some apps, such as Ads Manager and Twilight don't use DefaultComponentsRegistry to register C++ view managers. Instead these apps either make their own Registry (ex: [Twilight](https://www.internalfb.com/code/fbsource/[1585b5fe6b3e0a8d6a620a02034def4ba27abd53]/fbandroid/java/com/oculus/twilight/crossapp/reactpackage/XOCReactNativeHost.java?lines=43%2C130)) or they use the CatalystRegistery (ex: [AdsManager](https://www.internalfb.com/code/fbsource/[0ccac33cd873b8d2efc73a12af76836d535d7fc8]/fbandroid/java/com/facebook/adsmanager/AdsManagerApplicationImpl.java?lines=484-484)). When migrating from away usage of ReactNativeHost to ReactHost, there was previously no way to register these view managers, leading to bridgeless specific bugs. Long term, we will make a solution to automatically register these view managers as part of our code gen, and when this is complete, this diff can be reverted. Differential Revision: D64149373
- Loading branch information