Skip to content
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

[expo-document-picker] Prevent crashing when picking folder #8930

Conversation

lukmccall
Copy link
Contributor

Why

Fixes #8837.

How

Some files can be interpreted as a folder. For example the .band file is a good example of this. For those files, we should get file size differently, cause otherwise, it will crash the application.

Test Plan

  • NCL ✅ (tested with .pdf, .band, .txt)

Changelog

  • Fixed getDocumentAsync crashing when picking a folder on iOS.

@github-actions
Copy link
Contributor

Native Component List for this branch is ready

lukmccall and others added 2 commits June 24, 2020 13:13
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@lukmccall lukmccall merged commit d05d573 into master Jun 24, 2020
@lukmccall lukmccall deleted the @lukmccall/expo-document-picker/fix-crashes-when-picking-folder branch June 24, 2020 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[expo-document-picker] iOS app crashes on GarageBand project (.band) files
2 participants