Skip to content

Commit 0415353

Browse files
committed
fix: running RNTester in bridgeless mode on visionOS (#90)
1 parent 36cae7e commit 0415353

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
@@ -121,14 +121,16 @@ - (UIView *)viewWithModuleName:(NSString *)moduleName initialProperties:(NSDicti
121121

122122
[self createReactHost];
123123
[RCTComponentViewFactory currentComponentViewFactory].thirdPartyFabricComponentsProvider = self;
124-
RCTFabricSurface *surface = [_reactHost createSurfaceWithModuleName:self.moduleName initialProperties:initProps];
124+
RCTFabricSurface *surface = [_reactHost createSurfaceWithModuleName:moduleName initialProperties:initProps];
125125

126126
RCTSurfaceHostingProxyRootView *surfaceHostingProxyRootView = [[RCTSurfaceHostingProxyRootView alloc]
127127
initWithSurface:surface
128128
sizeMeasureMode:RCTSurfaceSizeMeasureModeWidthExact | RCTSurfaceSizeMeasureModeHeightExact];
129129

130130
rootView = (RCTRootView *)surfaceHostingProxyRootView;
131131
rootView.backgroundColor = [UIColor systemBackgroundColor];
132+
[self customizeRootView:(RCTRootView *)rootView];
133+
return rootView;
132134
}
133135
if (!self.bridge) {
134136
self.bridge = [self createBridgeWithDelegate:self launchOptions:launchOptions];

0 commit comments

Comments
 (0)