File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
apps/example/src/Examples Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,7 @@ export default function FourTabs({
6262 role : 'search' ,
6363 searchable : true ,
6464 navigationBarToolbarStyle :
65- Platform . Version === 26 || Platform . Version === '26.0'
66- ? 'hidden'
67- : 'visible' ,
65+ Platform . Version === '26.0' ? 'hidden' : 'visible' ,
6866 } ,
6967 ] ) ;
7068
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { Contacts } from '../Screens/Contacts';
44import { Chat } from '../Screens/Chat' ;
55import { createNativeBottomTabNavigator } from '@bottom-tabs/react-navigation' ;
66import { createNativeStackNavigator } from '@react-navigation/native-stack' ;
7- import { Platform } from 'react-native' ;
7+ import { Dimensions , Platform } from 'react-native' ;
88
99const headerOptions = {
1010 headerShown : true ,
@@ -67,6 +67,7 @@ function ChatStackScreen() {
6767}
6868
6969function NativeBottomTabsEmbeddedStacks ( ) {
70+ console . log ( Platform . Version , 'Platform.Version' ) ;
7071 return (
7172 < Tab . Navigator
7273 onSearchTextChange = { ( text ) => console . log ( text ) }
@@ -104,7 +105,9 @@ function NativeBottomTabsEmbeddedStacks() {
104105 tabBarIcon : ( ) => require ( '../../assets/icons/person_dark.png' ) ,
105106 searchable : true ,
106107 navigationBarToolbarStyle :
107- Platform . Version === 26 || Platform . Version === '26.0'
108+ Platform . Version === '26.0' &&
109+ Platform . OS === 'ios' &&
110+ Dimensions . get ( 'window' ) . width < 400
108111 ? 'hidden'
109112 : 'visible' ,
110113 } }
You can’t perform that action at this time.
0 commit comments