import { HeaderCenter, HeaderLeft } from '@components/Header' import ScreenMeBookmarks from '@screens/Me/Bookmarks' import ScreenMeConversations from '@screens/Me/Cconversations' import ScreenMeFavourites from '@screens/Me/Favourites' import ScreenMeLists from '@screens/Me/Lists' import ScreenMeRoot from '@screens/Me/Root' import ScreenMeListsList from '@screens/Me/Root/Lists/List' import ScreenMeSettings from '@screens/Me/Settings' import ScreenMeSwitch from '@screens/Me/Switch' import sharedScreens from '@screens/Shared/sharedScreens' import React from 'react' import { useTranslation } from 'react-i18next' import { Platform } from 'react-native' import { createNativeStackNavigator } from 'react-native-screens/native-stack' const Stack = createNativeStackNavigator() const ScreenMe: React.FC = () => { const { t } = useTranslation() return ( null }} /> ({ headerTitle: t('meBookmarks:heading'), ...(Platform.OS === 'android' && { headerCenter: () => ( ) }), headerLeft: () => navigation.pop(1)} /> })} /> ({ headerTitle: t('meConversations:heading'), ...(Platform.OS === 'android' && { headerCenter: () => ( ) }), headerLeft: () => navigation.pop(1)} /> })} /> ({ headerTitle: t('meFavourites:heading'), ...(Platform.OS === 'android' && { headerCenter: () => ( ) }), headerLeft: () => navigation.pop(1)} /> })} /> ({ headerTitle: t('meLists:heading'), ...(Platform.OS === 'android' && { headerCenter: () => }), headerLeft: () => navigation.pop(1)} /> })} /> ({ headerTitle: t('meListsList:heading', { list: route.params.title }), ...(Platform.OS === 'android' && { headerCenter: () => ( ) }), headerLeft: () => navigation.pop(1)} /> })} /> ({ headerTitle: t('meSettings:heading'), ...(Platform.OS === 'android' && { headerCenter: () => ( ) }), headerLeft: () => navigation.pop(1)} /> })} /> ({ stackPresentation: 'fullScreenModal', headerShown: false, headerLeft: () => navigation.pop(1)} /> })} /> {sharedScreens(Stack as any)} ) } export default ScreenMe