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

101
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

0

try running this commands

 cd android
./gradlew clean
npm install
about 4 years ago · Juan Pablo Isaza 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