Open Yasernova opened 4 years ago
I used this method and it's working fine..
//For IOS if (Platform.OS === 'ios') { RNFetchBlob.config({ fileCache: true, appendExt: extension, }) .fetch('GET', url) .progress((received, total) => { // console.log('progress', (received / total) * 100); setFileLoading(true); }) .then((res) => { setFileLoading(false); RNFetchBlob.ios.openDocument(res.path()); }); }
Can you help me to solve this issue please #698 thanks.
const download = async () => { const createAndPerview = () => saveFile(
${path}/${fileName}-${moment().format('YYYY-MM-DD HH:MM:SS').split(' ').join('-')}.png`, data, 'base64') .then((res) => { console.log(res); // logs the bytes size notificationToast('success', i18n.t('saved')); }).catch(console.warn);};`