File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
packages/react-native-bottom-tabs/ios Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' react-native-bottom-tabs ' : patch
3+ ---
4+
5+ feat: make tabview background transparent
Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ struct TabViewImpl: View {
5656 }
5757 #endif
5858 . introspectTabView { tabController in
59+ tabController. view. backgroundColor = . clear
60+ tabController. viewControllers? . forEach { $0. view. backgroundColor = . clear }
5961 #if os(macOS)
6062 tabBar = tabController
6163 #else
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public final class TabInfo: NSObject {
4545}
4646
4747@objc public class TabViewProvider : PlatformView {
48- private var delegate : TabViewProviderDelegate ?
48+ private weak var delegate : TabViewProviderDelegate ?
4949 private var props = TabViewProps ( )
5050 private var hostingController : PlatformHostingController < TabViewImpl > ?
5151 private var coalescingKey : UInt16 = 0
@@ -212,6 +212,7 @@ public final class TabInfo: NSObject {
212212
213213 if let hostingController = self . hostingController, let parentViewController = reactViewController ( ) {
214214 parentViewController. addChild ( hostingController)
215+ hostingController. view. backgroundColor = . clear
215216 addSubview ( hostingController. view)
216217 hostingController. view. translatesAutoresizingMaskIntoConstraints = false
217218 hostingController. view. pinEdges ( to: self )
You can’t perform that action at this time.
0 commit comments