B#
Size: a a a
B#
VP
B#
S
SS
VP
google places api nearby searchVP
B#
SS
google places api nearby searchК
S
К
YN

const dirToSave = Platform.select({
ios: dirs.DocumentDir,
android: dirs.DownloadDir,
});
const filePath = `${dirToSave}/${fileName}`;fetch('GET', `http://localhost:8889/${url}`, {
Authorization: `Bearer ${authToken}`,
})
.then(async (res) => {
await RNFetchBlob.fs.writeFile(filePath, res.data, 'base64');
RNFetchBlob.ios.previewDocument(filePath);
В итоге получаю пустой pdf.AG
D

const dirToSave = Platform.select({
ios: dirs.DocumentDir,
android: dirs.DownloadDir,
});
const filePath = `${dirToSave}/${fileName}`;fetch('GET', `http://localhost:8889/${url}`, {
Authorization: `Bearer ${authToken}`,
})
.then(async (res) => {
await RNFetchBlob.fs.writeFile(filePath, res.data, 'base64');
RNFetchBlob.ios.previewDocument(filePath);
В итоге получаю пустой pdf.SA
GB
ИС