Skip to content

Commit

Permalink
Fabric JS: allow showing fabric indicator for AppRegistry
Browse files Browse the repository at this point in the history
Summary: AppRegistry always hides the small fabric indicator. This allows it to be enabled.

Reviewed By: mdvacca

Differential Revision: D14877831

fbshipit-source-id: 4fe3aac13074641049a9298f5a616aea3138ce93
  • Loading branch information
fkgozali authored and facebook-github-bot committed Apr 10, 2019
1 parent f01c4e2 commit 66492e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Libraries/ReactNative/AppRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -71,6 +72,10 @@ const AppRegistry = {
wrapperComponentProvider = provider;
},

enableFabricIndicator(enabled: boolean): void {
showFabricIndicator = enabled;
},

registerConfig(config: Array<AppConfig>): void {
config.forEach(appConfig => {
if (appConfig.run) {
Expand Down Expand Up @@ -114,7 +119,7 @@ const AppRegistry = {
appParameters.rootTag,
wrapperComponentProvider && wrapperComponentProvider(appParameters),
appParameters.fabric,
false,
showFabricIndicator,
scopedPerformanceLogger,
);
},
Expand Down

0 comments on commit 66492e7

Please sign in to comment.