@@ -6,7 +6,7 @@ import { size } from 'lodash';
66import { Contact , ListTree , Map , Megaphone , Menu , Notebook , Settings } from 'lucide-react-native' ;
77import React , { useCallback , useEffect , useRef } from 'react' ;
88import { useTranslation } from 'react-i18next' ;
9- import { StyleSheet , useWindowDimensions } from 'react-native' ;
9+ import { Platform , StyleSheet , useWindowDimensions } from 'react-native' ;
1010
1111import { NotificationButton } from '@/components/notifications/NotificationButton' ;
1212import { NotificationInbox } from '@/components/notifications/NotificationInbox' ;
@@ -224,7 +224,7 @@ export default function TabLayout() {
224224 }
225225
226226 const content = (
227- < View style = { styles . container } pointerEvents = "box-none " >
227+ < View style = { styles . container } pointerEvents = "auto " >
228228 < View className = "flex-1 flex-row" ref = { parentRef } >
229229 { /* Drawer - conditionally rendered as permanent in landscape */ }
230230 { isLandscape ? (
@@ -266,8 +266,8 @@ export default function TabLayout() {
266266 paddingTop : 5 ,
267267 height : isLandscape ? 65 : 60 ,
268268 elevation : 8 , // Ensure tab bar is above other elements on Android
269- zIndex : 100 , // Ensure tab bar is above other elements on iOS
270- backgroundColor : 'transparent' , // Ensure proper touch event handling
269+ zIndex : 10 , // Reduced z-index to prevent stacking issues
270+ backgroundColor : undefined , // Let the tab bar use its default background
271271 } ,
272272 } }
273273 >
@@ -406,5 +406,7 @@ const styles = StyleSheet.create({
406406 flex : 1 ,
407407 width : '100%' ,
408408 height : '100%' ,
409+ // Ensure proper touch event handling in iOS production builds
410+ ...( Platform . OS === 'ios' && { overflow : 'hidden' } ) ,
409411 } ,
410412} ) ;
0 commit comments