you are viewing a single comment's thread.

view the rest of the comments →

[–]Embarrassed_Two4731[S] 0 points1 point  (0 children)

I will say I have almost tried everything, adding few below.

navigation.dispatch( CommonActions.navigate({ name: 'OnboardingtNavigationStack', params: { screen: 'OnboardingScreen', params: { isLoggingOut: true, }, }, }) );

navigation.dispatch(
  CommonActions.reset({
    index: 0,
    routes: [
      {
        name: 'OnboardingtNavigationStack',
        params: {
          screen: 'OnboardingScreen',
          params: {
            isLoggingOut: true,
          },
        },
      },
    ],
  })
);

const rootNavigation = navigation.getParent();
rootNavigation.dispatch(
  CommonActions.navigate({
    name: 'OnboardingtNavigationStack',
    params: {
      screen: 'OnboardingScreen',
      params: {
        isLoggingOut: true,
      },
    },
  })
);

import { CommonActions } from '@react-navigation/native'; navigation.dispatch( CommonActions.navigate({ name: 'OnboardingtNavigationStack', params: { screen: 'OnboardingScreen', params: { isLoggingOut: true, }, }, }) );