Skip to content

actionViewIntent to throw on unsupported file #240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jacse
Copy link

@Jacse Jacse commented Nov 20, 2018

Currently if a user tries to open an unsupported file, actionViewIntent will return a never-resolving promise. I propose to revert back to the functionality of react-native-fetch-blobwhere the promise rejects if the file is unsupported. This can be achieved either by removing the support-check (as I've done here) or at least make the promise reject if the support-check fails.

@pavermakov
Copy link

On Android 9 I get an error "EUNSPECIFIED", and the file does not show up. Does anyone know why?

@Traviskn
Copy link

@pavermakov did you encounter this error while testing this PR? Would anyone be able to test and/or confirm that throwing does not cause a crash?

@Traviskn Traviskn added the question Further information is requested label Sep 26, 2019
@Jacse
Copy link
Author

Jacse commented Sep 26, 2019

@Traviskn I've been using this PR in production for almost a year now and it just rejects the promise. Would be great if a someone else could verify though.

cguino pushed a commit to BeApp/rn-fetch-blob that referenced this pull request Jul 5, 2023
cguino added a commit to BeApp/rn-fetch-blob that referenced this pull request Jul 5, 2023
* blobmaster: (246 commits)
  version closes joltup#259
  remove restrictions for legacy dir and android version fixes joltup#240
  fixes joltup#255
  adds missing import fixes joltup#258
  fixes joltup#253
  fixes joltup#251
  adding new flag for downloadmanager to download to mediastore
  adds addeventlistener and removeeventlistener stumps to not get warnings
  android fs events
  missing json parse
  small fixes
  filesystem rework
  fetch part working for ios
  ios part version 2
  Revert "ios part but no idea if working"
  some project changes
  ios part but no idea if working
  js side
  fix: fix bug Illegal callback invocation from native module
  Version
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants