Open asleepace opened 7 years ago
Hi very simple request here, I would like to rename a file saved to the local device from RNFetchBlobTmpWhatever to something more friendly, how can I go about this?
react-native: 0.45.1
Here is my code:
RNFetchBlob.config({fileCache:true, appendExt:this.props.ext}) .fetch('GET', url, Request.headers()) .then((res) => { this.setState({ loading: false }); this.share(res.path()); this.print(res.path()); }) .catch(error => console.log("ERROR DOWNLOADING:",error));
@Asleepace I guess you can use the mv method.
Hi very simple request here, I would like to rename a file saved to the local device from RNFetchBlobTmpWhatever to something more friendly, how can I go about this?
react-native: 0.45.1
Here is my code: