Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
}
}}
/>