Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

278
Visualizações
React Native: tratando de pasar la navegación de la pila a la navegación de la pestaña inferior

Tengo problemas para pasar mi Navegador de pila a mi Navegador de pestañas inferior. Sigo recibiendo el error a continuación. ¿Dónde me estoy equivocando?

Creé el componente de navegación Stack y luego lo importé a mi pestaña de navegación inferior y luego pasé el componente allí. Creo que todo está bien pero luego comienza el error.

ingrese la descripción de la imagen aquí

NAVEGADOR DE FICHA INFERIOR

 import * as React from 'react'; import { MaterialCommunityIcons } from '@expo/vector-icons'; import { createMaterialBottomTabNavigator } from '@react-navigation/material-bottom-tabs'; import { LeftNavigator } from '../stack.navigation.js/stack'; const Tab = createMaterialBottomTabNavigator(); export const BottomNavigator = () => { return ( <> <Tab.Navigator initialRouteName="Left" activeColor="white" > <Tab.Screen name="Left Screen" component={LeftNavigator} /> //here im trying to pass in my stack navigator component to my bottom tab navigator </Tab.Navigator> </> ) }

NAVEGADOR DE PILAS

 import * as React from 'react'; import { CnnScreen } from '../news.screens.js/cnn'; import { Reuters } from '../news.screens.js/reuters'; import { TheVerge } from '../news.screens.js/the.verge' import { StyleSheet, Text, SafeAreaView, ScrollView, View, Image, TouchableOpacity} from 'react-native'; import { NavigationContainer } from '@react-navigation/native'; import { LeftScreen } from '../left/left.screen'; import { createNativeStackNavigator } from '@react-navigation/native-stack'; const LeftStack = createNativeStackNavigator(); export const LeftNavigator = () => { <LeftStack.Navigator initialRouteName='Left'> <LeftStack.Screen name="Left" component={LeftScreen}/> <LeftStack.Screen name="CNN" component={CnnScreen}/> <LeftStack.Screen name="Reuters" component={Reuters}/> <LeftStack.Screen name="TheVerge" component={TheVerge}/> </LeftStack.Navigator> }
about 4 years ago · Santiago Gelvez
1 Respostas
Responde à pergunta

0

Tienes dos problemas en tu código.
primer código necesita arreglar:
[NAVEGADOR DE PESTAÑA INFERIOR]

 ... const Tab = createMaterialBottomTabNavigator(); export const BottomNavigator = () => { return ( <> | | | * ----> <Tab.Navigator initialRouteName="Left" activeColor="white" > replace it to: "Left Screen" as your tab screen name <Tab.Screen name="Left Screen" component={LeftNavigator} /> //here im trying to pass in my stack navigator component to my bottom tab navigator </Tab.Navigator> </> ) }

segundo:
NAVEGADOR DE PILAS

 .... const LeftStack = createNativeStackNavigator(); export const LeftNavigator = () => { //---> Add return return <LeftStack.Navigator initialRouteName='Left'> <LeftStack.Screen name="Left" component={LeftScreen}/> <LeftStack.Screen name="CNN" component={CnnScreen}/> <LeftStack.Screen name="Reuters" component={Reuters}/> <LeftStack.Screen name="TheVerge" component={TheVerge}/> </LeftStack.Navigator> }
about 4 years ago · Santiago Gelvez Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda