# Estilos y Layout en React Native (React Native) > Flexbox, posicionamiento absoluto, diseño responsive, safe area, estilos específicos por plataforma - 18 preguntas de entrevista - Junior - [Preguntas de entrevista: React Native](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista.md) ## 1. ¿Cuál es la dirección por defecto de flexDirection en React Native? **Respuesta** En React Native, flexDirection tiene el valor 'column' por defecto, a diferencia de la web donde es 'row'. Esto significa que los elementos hijos se disponen verticalmente de arriba hacia abajo por defecto. Esta diferencia refleja las convenciones típicas de las interfaces móviles, donde los layouts verticales son más comunes. ## 2. ¿Cómo crear un estilo reutilizable en React Native? **Respuesta** StyleSheet.create() es el método recomendado para crear estilos en React Native. Permite definir un objeto de estilos que puede reutilizarse en varios componentes. Este enfoque optimiza el rendimiento validando los estilos una sola vez al inicio y referenciándolos por ID en lugar de recrear los objetos en cada render. ## 3. ¿Qué propiedad usar para centrar un elemento horizontal Y verticalmente dentro de su contenedor? **Respuesta** Para centrar un elemento en ambos ejes, hay que combinar justifyContent: 'center' (eje principal) y alignItems: 'center' (eje secundario). Con el flexDirection por defecto ('column'), justifyContent centra verticalmente y alignItems centra horizontalmente. Estas dos propiedades trabajan juntas para lograr un centrado perfecto. ## 15 preguntas más disponibles - ¿Cuál es la unidad de medida utilizada por defecto en React Native para las dimensiones? - ¿Qué propiedad permite posicionar un elemento de manera absoluta respecto a su padre? 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 - [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 - [Networking y API en React Native](https://sharpskill.dev/es/technologies/react-native/preguntas-entrevista/rn-networking-api.md): 20 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-styling-layout