Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fetch('https://mat-dev.pl/asseco/list.php')
- .then(res=>res.json())
- .then((rJson)=>{
- // rJson.results.map(x=>console.log(x.name))
- let array = [];
- console.log(rJson);
- //rJson.results.filter(x=>(!(x.types.includes('locality')||x.types.includes('route')))).map(x=>{console.log(x.name);array.push(<Text key={x.name}>{x.name}</Text>)})
- //setPlaces(array);
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement