Skip to content

Commit 6ea7dc6

Browse files
authored
fix: running RNTester in bridgeless mode on visionOS (#90)
1 parent f9a0287 commit 6ea7dc6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,16 @@ - (UIView *)viewWithModuleName:(NSString *)moduleName initialProperties:(NSDicti
126126

127127
[self createReactHost];
128128
[RCTComponentViewFactory currentComponentViewFactory].thirdPartyFabricComponentsProvider = self;
129-
RCTFabricSurface *surface = [_reactHost createSurfaceWithModuleName:self.moduleName initialProperties:initProps];
129+
RCTFabricSurface *surface = [_reactHost createSurfaceWithModuleName:moduleName initialProperties:initProps];
130130

131131
RCTSurfaceHostingProxyRootView *surfaceHostingProxyRootView = [[RCTSurfaceHostingProxyRootView alloc]
132132
initWithSurface:surface
133133
sizeMeasureMode:RCTSurfaceSizeMeasureModeWidthExact | RCTSurfaceSizeMeasureModeHeightExact];
134134

135135
rootView = (RCTRootView *)surfaceHostingProxyRootView;
136136
rootView.backgroundColor = [UIColor systemBackgroundColor];
137+
[self customizeRootView:(RCTRootView *)rootView];
138+
return rootView;
137139
}
138140
if (!self.bridge) {
139141
self.bridge = [self createBridgeWithDelegate:self launchOptions:launchOptions];

0 commit comments

Comments
 (0)