I want to get a json file in return.
this is a fetch Function i am using
handleApi(){
return
fetch('https://facebook.github.io/react-native/movies.json')
.then((response) => response.json())
.then((responseJson) => {
return responseJson.movies;
})
}
this function is being called on an button click event.
handleSubmit() {
console.log(
this.handleApi();
)
but i am getting this Promise object in return not expected data
Promise {_40: 0, _65: 0, _55: null, _72: null}_40: 0_55: null_65: 0_72: null__proto__: Object