Skip to content

Commit 3edc401

Browse files
committed
fix: tvOS measurements
1 parent 08cec90 commit 3edc401

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/react-native-bottom-tabs/ios/Extensions.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ extension PlatformImage {
5454
}
5555

5656
extension View {
57-
57+
5858
#if os(macOS)
5959
@MainActor
6060
@ViewBuilder
@@ -81,8 +81,8 @@ extension View {
8181
#endif
8282
}
8383
#endif
84-
85-
84+
85+
8686
@MainActor
8787
@ViewBuilder
8888
func measureView(onLayout: @escaping (_ size: CGSize) -> Void) -> some View {
@@ -97,7 +97,7 @@ extension View {
9797
onLayout(geometry.size)
9898
}
9999
}
100-
.ignoresSafeArea(.all, edges: .vertical)
100+
.ignoresSafeArea(.all, edges: .all)
101101
)
102102
}
103103
}

packages/react-native-bottom-tabs/ios/TabViewImpl.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ struct TabViewImpl: View {
134134
#if !os(macOS)
135135
private func updateTabBarAppearance(props: TabViewProps, tabBar: UITabBar?) {
136136
guard let tabBar else { return }
137-
137+
138138
tabBar.isHidden = props.tabBarHidden
139139

140140
if props.scrollEdgeAppearance == "transparent" {
@@ -296,7 +296,7 @@ extension View {
296296
) -> some View {
297297
if flag {
298298
self
299-
.ignoresSafeArea(.container, edges: .vertical)
299+
.ignoresSafeArea(.container, edges: .all)
300300
} else {
301301
self
302302
.ignoresSafeArea(.container, edges: .bottom)
@@ -350,7 +350,7 @@ extension View {
350350
self
351351
}
352352
}
353-
353+
354354
@ViewBuilder
355355
func hideTabBar(_ flag: Bool) -> some View {
356356
#if !os(macOS)

0 commit comments

Comments
 (0)