Something went wrong. Try again.
Bluesky app fork with some witchin' additions 💫 forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
535 B · 16 lines
TypeScript
at main
1234567891011121314151617import {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', isAtNotifications: currentRoute === 'Notifications', isAtMyProfile: currentRoute === 'MyProfile', isAtMessages: currentRoute === 'Messages', } })}