Advertencia completa:
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.Estoy haciendo una aplicación de prueba simple, y en este componente estoy representando TouchableOpacities que al hacer clic lo llevarán a la pantalla de prueba
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> );En algún lugar está devolviendo una función en una función de renderizado
Se verá algo como esto:
const func = () => {} return ( () => {} ) return ( function() {} ) return ( func )