diff --git a/Libraries/ReactNative/AppRegistry.js b/Libraries/ReactNative/AppRegistry.js index aaef5ac184de8b..5e10af2f6b03b3 100644 --- a/Libraries/ReactNative/AppRegistry.js +++ b/Libraries/ReactNative/AppRegistry.js @@ -60,6 +60,7 @@ let componentProviderInstrumentationHook: ComponentProviderInstrumentationHook = ) => component(); let wrapperComponentProvider: ?WrapperComponentProvider; +let showFabricIndicator = false; /** * `AppRegistry` is the JavaScript entry point to running all React Native apps. @@ -71,6 +72,10 @@ const AppRegistry = { wrapperComponentProvider = provider; }, + enableFabricIndicator(enabled: boolean): void { + showFabricIndicator = enabled; + }, + registerConfig(config: Array): void { config.forEach(appConfig => { if (appConfig.run) { @@ -114,7 +119,7 @@ const AppRegistry = { appParameters.rootTag, wrapperComponentProvider && wrapperComponentProvider(appParameters), appParameters.fabric, - false, + showFabricIndicator, scopedPerformanceLogger, ); },