Relative Content

Tag Archive for typescriptreact-nativeexpoexpo-goexpo-file-system

Saving downloaded file excel to internal storage in React Native using Expo

I’m developing a React Native app using Expo, and I’m trying to download a file (Excel format) from an API and save it to the device’s internal storage so that it can be accessed and opened by the user. Currently, I’m able to download the file successfully, but it’s getting saved to a temporary cache directory (FileSystem.documentDirectory). Here’s the relevant code snippet I’m using: