Я использую rn-fetch-blob, как я могу скачать файл, где мне нужно передать некоторые параметры в теле запроса с помощью POST?Я пробовал это:
RNFetchBlob
.config({
// add this option that makes response data to be stored as a file,
// this is much more performant.
fileCache: true,
path: RNFetchBlob.fs.dirs.DownloadDir + '/video.mp4'
})
.fetch('POST', `${SERVER}/get_video`, {
unique_key: TerminalID(),
id_midia: '2'
})
.then((res) => {
// the temp file path
Alert.alert('Caminho', 'The file saved to ' + res.path())
this.setState({ download: true, downloadActionFinished: true })
})
Но API не получает данные, которые я передаю в теле запроса