B#
Size: a a a
B#
VP
B#
S
SS
VP
google places api nearby search
VP
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}`, {В итоге получаю пустой pdf.
Authorization: `Bearer ${authToken}`,
})
.then(async (res) => {
await RNFetchBlob.fs.writeFile(filePath, res.data, 'base64');
RNFetchBlob.ios.previewDocument(filePath);
AG
D
const dirToSave = Platform.select({
ios: dirs.DocumentDir,
android: dirs.DownloadDir,
});
const filePath = `${dirToSave}/${fileName}`;
fetch('GET', `http://localhost:8889/${url}`, {В итоге получаю пустой pdf.
Authorization: `Bearer ${authToken}`,
})
.then(async (res) => {
await RNFetchBlob.fs.writeFile(filePath, res.data, 'base64');
RNFetchBlob.ios.previewDocument(filePath);
SA
GB
ИС