Skip to content

Commit

Permalink
Remove usage of overlay component builder
Browse files Browse the repository at this point in the history
Summary: Changelog: [Internal]

Reviewed By: Andrey-Mishanin

Differential Revision: D34683221

fbshipit-source-id: 204fab7185017d1718cbcac5d2b388c8c0eaab08
  • Loading branch information
kevin-lyn authored and facebook-github-bot committed Mar 7, 2022
1 parent 42b01a3 commit ff76952
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponent.mm
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,8 @@ + (instancetype)newWithBridge:(RCTBridge *)bridge
if (options.activityIndicatorComponentFactory == nil || RCTSurfaceStageIsRunning(state.surface.stage)) {
component = surfaceHostingComponent;
} else {
component = CK::OverlayLayoutComponentBuilder()
.component(surfaceHostingComponent)
.overlay(options.activityIndicatorComponentFactory())
.build();
component = [[CKOverlayLayoutComponent alloc] initWithComponent:surfaceHostingComponent
overlay:options.activityIndicatorComponentFactory()];
}

return [super newWithComponent:component];
Expand Down

0 comments on commit ff76952

Please sign in to comment.