Home responseData gives an error ReactNative
Reply: 0

responseData gives an error ReactNative

user532
1#
user532 Published in April 22, 2018, 12:42 am
fetch(loginApi, {
  method: "POST",
  headers: {
    Accept: "application/json",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    Password: password,
    UserName: username
  })
})
  .then(response => response.json())
  .then(responseData => {
    console.log(responseData); //// <--- getting error at this line
  })
  .catch(error => {
    console.error(error);
  });

enter image description here

Any idea how to solve it??? Thanks in advance.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.305504 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO