fix link crash

This commit is contained in:
Samuel Newman
2025-09-29 14:55:07 +03:00
parent 7f4e3091f7
commit 2e2c76b8f8
+1 -1
View File
@@ -166,7 +166,7 @@ export function useLink({
const state = navigation.getState()
// if screen is not in the current navigator, it means it's
// most likely a tab screen
if (!state.routeNames.includes(screen)) {
if (state && !state.routeNames.includes(screen)) {
const parent = navigation.getParent()
if (
parent &&