Signup.js“,”errors“:[{”description“:”SyntaxError:
Signup.js“,”errors“:[{”description“:”SyntaxError:
I am started ReactNative API call but getting this issue, please help how to solve this.
I have tested this Url call in PostMan it's working perfectly.
[![fetch("http://test/webservice.php?action=registration",
{method: "POST",
body: JSON.stringify({
name: 'test',
username: 'test',
email: 'test@gmail.com',
password: 'agc123',
mobile: '7897897897',
device_token: 'token',
device_type: 'ios',
lang: 'en'})})
.then((response) => response.json())
.then((responseData) => {
AlertIOS.alert(
"POST Response",
"Response Body -> " + JSON.stringify(responseData.body)
)
})
.done();]
react-native-cli: 2.0.1 react-native: 0.56.0 ubuntu
– Payal Javiya
10 secs ago
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Which version of React Native and Machine are you using?
– Aravind S
1 min ago