Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

164
Vistas
How can we use (or alternate method of) switchNavigator v4 (React Navigation) in the latest version React Navigation v6?

I have been using React navigation v4 since I am coding in react native. Recently I switched to v6 in a new project, when I needed to setup switchNavigation as I have in v4, I found there was no proper documentation on their site. I tried few ways but it couldn't get me to the desired result. Did anyone of you guys has their setup in v6 of switchNavigation? If so, do share and help me out.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Use async storage , Context APIenter code here

  <NavigationContainer theme={MyTheme}>
    <Stack.Navigator
      screenOptions={{
        headerShown: false,
        presentation: 'card',
      }}
      initialRouteName="Landing" //TODO: change to Landing or comment it ;)
    // detachInactiveScreens={true}
    >
      {props.shared.isloginHost == null ? (
        <>
          <Stack.Screen name="Landing" component={Landing} />
          <Stack.Screen name="SignIn" component={SignIn} />
          <Stack.Screen name="SignUp" component={SignUp} />
          <Stack.Screen name="SignUpDetails" component={SignUpDetails} />
          <Stack.Screen name="ForgotPassword" component={ForgotPassword} />
          <Stack.Screen name="OTPPassword" component={OTPPassword} />
          <Stack.Screen name="ChangePassword" component={ChangePassword} />
          <Stack.Screen
            name="GuestBottomTab"
            component={GuestBottomTabs}
          />
        </>
      ) : (
        <>
          {props.shared.isloginHost == false ? (
            <Stack.Screen
              name="GuestBottomTabs"
              component={GuestBottomTabs}
            />
          ) : (
            <>
              {props.shared.hostplan == null ? (
                <Stack.Screen name="Insight" component={Insight} />
              ) : null}

              <Stack.Screen
                name="HostBottomTabs"
                component={HostBottomTabs}
              />
            </>
          )}
        </>
      )}

props.shared.isloginHost isloginHost is the state in the shared reducer when the state is null then user only access the Auth screen

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda