Skip to content

Commit 577ee01

Browse files
committed
fix: use clearColor instead of systemBackgroundColor for visionOS (#125)
1 parent 374d25c commit 577ee01

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ - (UIView *)createRootViewWithBridge:(RCTBridge *)bridge
7676
BOOL enableFabric = self.fabricEnabled;
7777
UIView *rootView = RCTAppSetupDefaultRootView(bridge, moduleName, initProps, enableFabric);
7878

79+
#if TARGET_OS_VISION
80+
rootView.backgroundColor = [UIColor clearColor];
81+
#else
7982
rootView.backgroundColor = [UIColor systemBackgroundColor];
83+
#endif
8084

8185
return rootView;
8286
}

0 commit comments

Comments
 (0)