react-native-file-viewer icon indicating copy to clipboard operation
react-native-file-viewer copied to clipboard

Add throwing error when unable to open file on iOS

Open markholland opened this issue 3 years ago • 0 comments

We are migrating from rn-fetch-blob openDocument to this library for opening files from our app.

With this library, on Android if a file can't be opened an error is thrown but this isn't the case on iOS.

With rn-fetch-blob we did have this behaviour on iOS and would like to keep it.

Is there a reason why failing to open a file on iOS isn't considered as an error?

Here is the relevant code in rn-fetch-blob https://github.com/joltup/rn-fetch-blob/blob/master/ios/RNFetchBlob/RNFetchBlob.m#L610

Thanks in advance

markholland avatar Jul 01 '22 14:07 markholland