# Networking y API en React Native (React Native) > fetch API, axios, async/await, manejo de errores, integración de API, AbortController - 20 preguntas de entrevista - Mid-Level - [Preguntas de entrevista: React Native](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista.md) ## 1. ¿Cuál es el método nativo de JavaScript para realizar solicitudes HTTP en React Native? **Respuesta** fetch es la API nativa integrada en JavaScript y React Native para realizar solicitudes HTTP. Retorna una Promise y permite manejar solicitudes GET, POST, PUT, DELETE sin dependencias externas. A diferencia de axios, fetch está disponible de forma nativa sin instalar ningún paquete. ## 2. ¿Qué retorna el método fetch() cuando una solicitud HTTP falla con un código 404 o 500? **Respuesta** fetch() siempre resuelve la Promise con éxito mientras la solicitud de red se complete, incluso para códigos de error HTTP como 404 o 500. Hay que verificar response.ok o response.status manualmente para detectar errores HTTP. fetch() solo rechaza la Promise por errores de red reales como la falta de conexión. ## 3. ¿Cuál es la principal ventaja de axios sobre fetch para las solicitudes HTTP? **Respuesta** axios transforma automáticamente los datos JSON en objetos JavaScript y maneja los códigos de error HTTP rechazando la Promise. Con fetch, hay que llamar a response.json() manualmente y verificar response.ok. axios también ofrece interceptores, una cancelación simplificada y un mejor manejo de timeouts por defecto. ## 17 preguntas más disponibles - ¿Cuál es la sintaxis correcta para enviar datos JSON con fetch en POST? - ¿Cómo simplifica async/await el manejo de solicitudes HTTP en comparación con las Promises encadenadas? Regístrate gratis: https://sharpskill.dev/es/login ## Otros temas de entrevista React Native - [Fundamentos de JavaScript](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/javascript-essentials.md): 25 preguntas, Junior - [Fundamentos de React](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/react-fundamentals.md): 20 preguntas, Junior - [Fundamentos de React Native](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/react-native-basics.md): 22 preguntas, Junior - [React Hooks](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/react-hooks.md): 20 preguntas, Junior - [TypeScript para React y React Native](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/typescript-for-react-native.md): 22 preguntas, Junior - [Componentes y API de React Native](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-components-api.md): 20 preguntas, Junior - [Estilos y Layout en React Native](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-styling-layout.md): 18 preguntas, Junior - [Navegación en React Native](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-navigation.md): 22 preguntas, Mid-Level - [Gestión de Estado en React Native](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-state-management.md): 24 preguntas, Mid-Level - [Persistencia de datos](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-data-persistence.md): 20 preguntas, Mid-Level - [Formularios y validación](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-forms-validation.md): 18 preguntas, Mid-Level - [Animaciones de React Native](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-animations.md): 22 preguntas, Mid-Level - [Native Modules & Bridge](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-native-modules.md): 20 preguntas, Mid-Level - [Código específico de plataforma](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-platform-specific-code.md): 18 preguntas, Mid-Level - [Permisos y APIs de dispositivo](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-permissions-apis.md): 20 preguntas, Mid-Level - [Push Notifications](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-push-notifications.md): 18 preguntas, Mid-Level - [Testing en React Native](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-testing.md): 20 preguntas, Mid-Level - [Debugging de React Native](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-debugging.md): 18 preguntas, Mid-Level - [Build & Deployment](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-build-deployment.md): 20 preguntas, Mid-Level - [Expo vs React Native Bare](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/expo-vs-bare-rn.md): 18 preguntas, Mid-Level - [Optimización del rendimiento](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-performance-optimization.md): 24 preguntas, Senior - [Gestión de memoria](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-memory-management.md): 20 preguntas, Senior - [Architecture Patterns](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-architecture-patterns.md): 22 preguntas, Senior - [New Architecture de React Native](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-new-architecture.md): 24 preguntas, Senior - [Mejores Prácticas de Seguridad](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-security-best-practices.md): 20 preguntas, Senior - [Offline-First Architecture](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-offline-first.md): 20 preguntas, Senior - [CI/CD React Native](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-ci-cd.md): 20 preguntas, Senior - [Monorepo y compartición de código](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-monorepo-architecture.md): 18 preguntas, Senior - [Temas avanzados](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-advanced-topics.md): 22 preguntas, Senior - [Ciclo de vida de la app y ejecución en segundo plano](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-app-lifecycle-background.md): 20 preguntas, Mid-Level - [Autenticación y gestión de sesiones](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-auth-session-management.md): 22 preguntas, Mid-Level - [Monitoring & Crash Reporting](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-monitoring-crash-reporting.md): 20 preguntas, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-networking-api