How to use the rn-fetch-blob.ios function in rn-fetch-blob

To help you get started, we’ve selected a few rn-fetch-blob examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github guardian / editions / projects / EditionsIgnite / app / screens / download-screen.tsx View on Github external
onPress={item => {
            try {
              RNFetchBlob.ios.openDocument(issuesDir + "/" + item.key)
              RNFetchBlob.android.addCompleteDownload({
                title: item.key,
                description: "desc",
                mime: "data/zip",
                path: issuesDir + "/" + item.key,
                showNotification: true,
              })
            } catch {
              //TODO find a better approach for multi platform opens
            }
          }}
        />