Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

192
Views
La navegación de la pestaña inferior reactiva no funciona

estoy usando React Native con Expo tratando de construir la navegación de pestañas inferior pero no estoy seguro de cuál es la causa del error, estoy usando React Navigation6

Aplicación.js:

 import React from 'react'; import { StatusBar } from 'expo-status-bar'; import { StyleSheet, Text, View } from 'react-native'; import { createBottomTabNavigator } from "@react-navigation/bottom-tabs"; import { NavigationContainer } from '@react-navigation/native'; import BottomBar from './src/Navbar/BottomBar'; export default function App() { return( <NavigationContainer> <BottomBar/> </NavigationContainer> ) };

El error:

 Unable to resolve module src/Screens/Navigation/BottomNav from /Users/wafaturaifi/Desktop/Requests/App.js: src/Screens/Navigation/BottomNav could not be found within the project or in these directories: node_modules If you are sure the module exists, try these steps: 1. Clear watchman watches: watchman watch-del-all 2. Delete node_modules and run yarn install 3. Reset Metro's cache: yarn start --reset-cache 4. Remove the cache: rm -rf /tmp/metro-*

BottomBar.js:

 import React, { useEffect, useContext } from "react"; import { View } from "react-native"; import { createBottomTabNavigator } from "@react-navigation/bottom-tabs"; import HomeScreen from '../Screens/Home'; import MoreScreen from '../Screens/More'; import PostScreen from '../Screens/Post'; import RequestsScreen from '../Screens/Requests'; import SummaryScreen from '../Screens/Summary'; const Tab = createBottomTabNavigator(); const BottomBar=() => { return ( <Tab.Navigator> <Tab.Screen name="Home" component={HomeScreen} /> <Tab.Screen name="Summary" component={SummaryScreen} /> <Tab.Screen name="Add" component={AddScreen} /> <Tab.Screen name="Requests" component={RequestsScreen} /> <Tab.Screen name="More" component={MoreScreen} /> </Tab.Navigator> ); } export default BottomBar;

Estructura de archivos:

ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

este problema se debió a que usa React Navigation, necesita ejecutar el siguiente comando

 npm install react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view

o

 yarn add react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view
about 4 years ago · Juan Pablo Isaza Report

0

Prueba esos pasos; 1-eliminar módulos de nodo 2-npm instalar -forzar 3-y ejecutar de nuevo;

Si esos pasos no resolvieron el problema, puede compartir package.json;

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!