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

118
Vistas
How Can I Parse SOAP Data in React Native

How Can I Parse SOAP Data in React Native? I need help pls someone help me, i tried, if i write console.log(channels[0]); is output; just {

The contents of the view appear blank on the screen.

constructor(props) {
    super(props);
    this.state = ({
        channels: [],
    });
}

componentDidMount() {


    axios.post('xxxx', xmls, {
        headers: {
            'Content-Type': 'text/xml',
            Accept: 'application/xml',
          
        },
    })
        .then((response) => {
            const channels = convert.xml2json(response.data, {alwaysArray:true,ignoreAttributes: true, compact: true, ignoreDeclaration: true, fullTagEmptyElement: true, spaces: 4 })
            this.setState({ channels: [] })
            console.log(channels);
        })
        .catch(err => console.log(err));




}

render() {


    return (
        <View>

            {this.channels.map((v, id) => {
                <View key={id}>{v.item}</View>
            })}
       
       

        </View>
       
    )
}

}

about 4 years ago · Juan Pablo Isaza
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