Something went wrong. Try again.
cee sky
Something went wrong. Try again.
12345678910111213141516171819202122import {useNavigationState} from '@react-navigation/native'
import {getCurrentRoute} from '#/lib/routes/helpers'
export function useNavigationTabState() { return useNavigationState(state => { let currentRoute = state ? getCurrentRoute(state).name : 'Home' return { isAtHome: currentRoute === 'Home', isAtSearch: currentRoute === 'Search', isAtAtmosphere: currentRoute === 'Atmosphere', isAtFeeds: currentRoute === 'Feeds', isAtLists: currentRoute === 'Lists', isAtBookmarks: currentRoute === 'Bookmarks', isAtSettings: currentRoute === 'Settings', isAtNotifications: currentRoute === 'Notifications', isAtMyProfile: currentRoute === 'MyProfile', isAtMessages: currentRoute === 'Messages', } })}