The navigation state parsed from the URL contains routes not present in the root navigator

Viewed 29
linking={React.useMemo(
    () => ({
      prefixes: [
        "prefix://"
      ],
      config: {
        initialRouteName: isAuthenticated ? "home" : "auth",
        screens: {
           ...
          "wachtwoord-opnieuw-instellen": "wachtwoord-opnieuw-instellen/:token",
           ...
        },
      },
    }),
    []
  )}

Stack:

   const Stack = createNativeStackNavigator<{
      "wachtwoord-opnieuw-instellen": undefined;
    }>();

Screen:

 <Stack.Screen
            name="wachtwoord-opnieuw-instellen"
            component={passwordResetFormScreen}
            options={{
              headerShown: false,
              gestureEnabled: false,
            }}
          />

This is my structure of the linking but whenever i go to this url:

prefix://wachtwoord-opnieuw-instellen/lfjskfkdsfjsld

it redirects to the app but can't find the screens.

I can't find the thing i'm doing wrong so if anyone could help, it would be appreciated!

0 Answers
Related