Closed Ozzi48 closed 3 years ago
const jsonValue = JSON.stringify(data); const jsonValue2 = JSON.parse(jsonValue); for(var i=0; i < Object.keys(jsonValue2).length; i++){ this.setState(prevState => ({ image: [jsonValue2[i]['uri'], ...prevState.image] })) }
Found solution.
How to get image uri? I tried to write data.uri, but it shows that it is undefined.