You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have no experience with native code but still looked into the code a bit to at least understand the issue. failOnCancel is handled in the typescript part of the code depending on the result, and the error is a different one if it was active.
The native code for saveToFiles looks like a cancel is not handled at all and the error is originally from here. https://github.com/react-native-share/react-native-share/blob/main/ios/RNShare.mm#L260-L282
The text was updated successfully, but these errors were encountered:
Steps to reproduce
saveToFiles: true
to immediately get a document picker andfailOnCancel: false
to not fail when the user cancels.Expected behavior
I do not want to get an error when I set
failOnCancel: false
Actual behavior
When using
saveToFiles: true
andfailOnCancel: false
I still get an[Error: CANCELLED]
when I cancel or swipe down the share overlay on iOS.Environment
react-native-share
Version: 10.1.0
I have no experience with native code but still looked into the code a bit to at least understand the issue.
failOnCancel
is handled in the typescript part of the code depending on the result, and the error is a different one if it was active.The native code for
saveToFiles
looks like a cancel is not handled at all and the error is originally from here.https://github.com/react-native-share/react-native-share/blob/main/ios/RNShare.mm#L260-L282
The text was updated successfully, but these errors were encountered: