Please provide the following:
- SDK Version:41
- Platforms(Android/iOS/web/all): Android/Ios
- Add the appropriate “Tag” based on what Expo library you have a question on. #filesystem
i need a way to make a request with method Post passing a body but i didnt find a way to do it.
FileSystem.downloadAsync(${baseUrl}/v1/paycheck/pdf
, FileSystem.documentDirectory + ‘file.pdf’,
{
headers: {
‘Authorization’: localToken
},
httpMethod: ‘POST’,
body: {
type: 'monthy',
year: '2021',
month: 2,
employer: {
name: "Pink",
}
}
}
)
.then(({uri}) => {
Sharing.shareAsync(uri, {dialogTitle: 'Salvar ou Compartilhar'})
})
.catch(error => {
console.error(error);
});
}