Skip to content

Commit 3793de6

Browse files
committed
fix: ipad layout
1 parent 5bc4090 commit 3793de6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/react-native-bottom-tabs/ios/TabView/NewTabView.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,17 @@ struct NewTabView: AnyTabView {
4141
.tabAppear(using: context)
4242
.hideTabBar(props.tabBarHidden)
4343
.toolbar(tabData.navigationBarToolbarStyle.convert(), for: .navigationBar)
44-
.searchable(text: $query)
44+
4545
.searchFocused($focused)
4646
.onChange(of: focused){ newValue in
4747
onSearchFocusChange(newValue)
4848
}
4949
.onChange(of: query) { newValue in
5050
onSearchTextChange(newValue)
5151
}
52-
}
52+
53+
}.navigationViewStyle(StackNavigationViewStyle())
54+
.searchable(text: $query)
5355
}else{
5456
RepresentableView(view: child.view)
5557
.ignoresSafeArea(.container, edges: .all)

0 commit comments

Comments
 (0)