Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. fetch('https://mat-dev.pl/asseco/list.php')
  2. .then(res=>res.json())
  3. .then((rJson)=>{
  4. // rJson.results.map(x=>console.log(x.name))
  5. let array = [];
  6. console.log(rJson);
  7. //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>)})
  8. //setPlaces(array);
  9. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement