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

99
Vistas
Element type Invalid React Native

I just created a project and I m getting this error. No dependencies installed yet

import { StatusBar } from "expo-status-bar";
import {
  StyleSheet,
  Text,
  View,
  Container,
  Header,
  Title,
  Button,
  Left,
  Right,
  Body,
  Icon,
} from "react-native";

export default function App() {
  return (
    <Container>
      <Header>
        <Body>
          <Title></Title>
        </Body>
      </Header>
    </Container>
  );
}

Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check the render method of `App`.

This error is located at: in RCTView (created by View) in View (created by App) in App (created by ExpoRoot) in ExpoRoot in RCTView (created by View) in View (created by AppContainer) in RCTView (created by View) in View (created by AppContainer) in AppContainer

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

0

Did you create project using expo or react-native-cli and have you changed anything after creating the project?

If this is the expo cli you can try closing the metrol bundler and running npm install in your terminal then starting it again.

If this is react-native-cli you can try running.

npm install
cd ios && pod install
cd ..
about 4 years ago · Juan Pablo Isaza Denunciar

0

try running this commands

 cd android
./gradlew clean
npm install
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