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 {
56
56
}
57
57
#endif
58
58
. introspectTabView { tabController in
59
+ tabController. view. backgroundColor = . clear
60
+ tabController. viewControllers? . forEach { $0. view. backgroundColor = . clear }
59
61
#if os(macOS)
60
62
tabBar = tabController
61
63
#else
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public final class TabInfo: NSObject {
45
45
}
46
46
47
47
@objc public class TabViewProvider : PlatformView {
48
- private var delegate : TabViewProviderDelegate ?
48
+ private weak var delegate : TabViewProviderDelegate ?
49
49
private var props = TabViewProps ( )
50
50
private var hostingController : PlatformHostingController < TabViewImpl > ?
51
51
private var coalescingKey : UInt16 = 0
@@ -212,6 +212,7 @@ public final class TabInfo: NSObject {
212
212
213
213
if let hostingController = self . hostingController, let parentViewController = reactViewController ( ) {
214
214
parentViewController. addChild ( hostingController)
215
+ hostingController. view. backgroundColor = . clear
215
216
addSubview ( hostingController. view)
216
217
hostingController. view. translatesAutoresizingMaskIntoConstraints = false
217
218
hostingController. view. pinEdges ( to: self )
You can’t perform that action at this time.
0 commit comments