Fabric should be enabled or disabled app-wide without entrypoint-specific options

Summary:
Add new ReactFeatureFlag to enable or disable Fabric appwide.

Changelog: [Internal]

Reviewed By: fkgozali

Differential Revision: D30504714

fbshipit-source-id: f615d4c888a89f5401b0ff8f8305fdfbdf75fba3
This commit is contained in:
Joshua Gross 2021-08-25 13:07:31 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 2bcc6fac38
Коммит 8c4912a42f
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -25,6 +25,12 @@ public class ReactFeatureFlags {
*/
public static volatile boolean useTurboModules = false;
/**
* Should this application use the new (Fabric) Renderer? If yes, all rendering in this app will
* use Fabric instead of the legacy renderer.
*/
public static volatile boolean enableFabricRenderer = false;
/**
* After TurboModules and Fabric are enabled, we need to ensure that the legacy NativeModule isn't
* isn't used. So, turn this flag on to trigger warnings whenever the legacy NativeModule system