Skip to content

Commit

Permalink
fix: use clearColor instead of systemBackgroundColor for visionOS (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski committed Jun 24, 2024
1 parent 6d5c923 commit 2c8e4a2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,11 @@ - (UIView *)createRootViewWithBridge:(RCTBridge *)bridge
#endif
UIView *rootView = RCTAppSetupDefaultRootView(bridge, moduleName, initProps, enableFabric);

#if TARGET_OS_VISION
rootView.backgroundColor = [UIColor clearColor];
#else
rootView.backgroundColor = [UIColor systemBackgroundColor];

#endif
return rootView;
}

Expand Down

0 comments on commit 2c8e4a2

Please sign in to comment.