React native rn fetch blob不工作,文档未下载
我不确定我做错了什么:React native rn fetch blob不工作,文档未下载,react-native,React Native,我不确定我做错了什么: const base64String = statementResponse.data.base64BinaryContent; const DocumentDir = RNFetchBlob.fs.dirs.DocumentDir + '/' + fileName; // const pdfLocation = `${RNFetchBlob.fs.dirs.DocumentDir}/${fileName}`; await
const base64String = statementResponse.data.base64BinaryContent;
const DocumentDir = RNFetchBlob.fs.dirs.DocumentDir + '/' + fileName;
// const pdfLocation = `${RNFetchBlob.fs.dirs.DocumentDir}/${fileName}`;
await RNFetchBlob.fs.writeFile(DocumentDir, RNFetchBlob.base64.encode(base64String), 'base64');
什么也没发生