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

180
Vistas
Fresh installation by npx react-native init myapp causes in problem warning

I do the terminalcommand npx react-native init myapp. Change the dir to /myapp and vs code shows me this problem warning:

Error small Error

There are some more Errors like this in the file, without doing anything.

Another Error

What did I miss?

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

0

This is not an Error. It shows the return type of the Function you ca change it to.

const App = () => {
return(
    <View>
    </View>
)

}
about 4 years ago · Juan Pablo Isaza Denunciar

0

As discussed in the comments, this is a VSCode error only, since the application is using TypeScript annotations and the default file extension for typescript files is .ts. It could be solved by changing the file extension to .ts and possibly change occurrences of App.js in the project to App.ts.

However, this error message does not effect the runtime behavior. Since it might be desired to not change any code, we can get rid of the error message by changing the VSCode settings.

This is done by setting "javascript.validate.enable": false.

enter image description here

about 4 years ago · Juan Pablo Isaza Denunciar

0

Try this,

import { Text, View } from 'react-native'
import React from 'react'

export default function App() {
  return (
    <View>
      <Text>hello world!</Text>
    </View>
  )
}
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