Relative Content

Tag Archive for javascripttypescriptreact-nativeasync-awaitpromise

get a promise to return an object

I have a API class that gets data from an API and needs to return two pieces of information. I used the following function to get the data, which gets the Json and puts the data into a helper class and returns that class: