/** * Returns the same value as `router.canGoBack()` and re-renders when it changes. With tabs or a * drawer, the value can change once after the first render. * * @example * ```tsx * import { router, useCanGoBack } from 'expo-router'; * import { Button } from 'react-native'; * * export default function BackButton() { * const canGoBack = useCanGoBack(); * return