I’m trying to pass my javascript code (Reactjs) the path image: And in the code I write like this: source={{ uri: this.state.modelo.baner[0].url_img }} And the browser accuses this error: Typeerror: Cannot read Property '0' of Undefined
Probably that
this.state.modelohas not yet got thebanerdefenido... how does thisthis.state.modelois being filled in/updated?– Sergio
The image above is a part of the.log console of this This.
– Henrique Hermes
On the other tags I can use
– Henrique Hermes
What gives
console.log(JSON.stringify(this.state.modelo));?– Sergio
The best way I know to verify the existence of "props" and "States" after rendered, is with the extension React Developer Tools.
– Jomar Antônio Cardoso