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

195
Vistas
Why do I get this warning and how to fix it "Functions are not valid as a React child..."

Full warning:

Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.

I'm making a simple Quiz App, and in this component I'm rendering TouchableOpacities that on click will navigate you to Test screen

 return (
        <View style={styles.container}>
          {
          isLoading ? 
            (<View style={{display:'flex',flex:1,justifyContent:'center',alignItems:'center'}}>
              <ActivityIndicator size="large" color="#0000ff"/>
            </View>):
            (
              <ScrollView>
                  {data.map(test =>(
                    <HomeTestComponent key={test.id} navig={navigation} name={test.name} tags={test.tags} description={test.description}/>
                  ))}

                  <Footer navig={navigation}/>
              </ScrollView>
            
            )
          }
        </View>
     );
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Somewhere you are returning a function in a render function

It'll look something like this:

const func = () => {}

return (
 () => {}
)

return (
  function() {}
)

return ( func )
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