Como llevo este codigo web a Expo

Please provide the following:

  1. SDK Version:
  2. Platforms(Android/iOS/web/all):
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

Replace this section with as much relevant information as possible and any relevant code along with your question.

En web, hago este consumo para descargar un pdf o archivo en el servidor:
let response = await Fetcher({
method: ‘GET’,
url: url,
responseType: ‘blob’,
headers
});
const file = new Blob([response.data], {
type: response.data.type
});
const link = document.createElement(‘a’);
link.href = URL.createObjectURL(file);
link.setAttribute(‘download’, name)
document.body.appendChild(link)
link.click();

Y funciona a la perfección, pero en react native Expo no me deja. Alguna idea para descargar pdf alojados en el servidor o la manera correcta de hacer los últimos pasos en Expo

Try the following. Click the link for an example:

FileSystem.downloadAsync(uri, fileUri, options)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.