-
-
Notifications
You must be signed in to change notification settings - Fork 674
ComposeMenu: Offer file picker on iOS, not just Android. #4935
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
Conversation
Inheriting P1 from the issue. |
2b8058d
to
e295249
Compare
e295249
to
f3293d4
Compare
Thanks for pushing on this! The code looks great.
Hmm, that seems like a pretty bad symptom -- it's likely to make the user think it didn't work at all. I'll go take a look at #5635 now and see if we can merge that first. |
OK, just reviewed #5635. Not quite ready to merge, but I think we'll be able to do so soon. So let's let this PR just hang out for a bit, and we can merge it once that's in. |
OK, and #5635 is now merged. Would you rebase this PR and resolve the conflicts? |
Because it's been a while since we upgraded it, and because upgrading came up in a not-so-recent discussion of opting into the iOS side of this library, in zulip#4586. The release notes announce some breaking changes, but those shouldn't affect us: - A few changes to `fileCopyUri`, but we don't use that - A change to `pick`, which we don't use (we use `pickMultiple`) - Desupport Android <5 (which we've already done) Changelog: https://github.com/rnmods/react-native-document-picker/releases
I've just tested on my iPhone (13 Pro, running iOS 16.1), and I was able to upload a file just fine after this change. That was easy! Fixes: zulip#4586
I don't get any warnings from Jest with this usual style of import. It looks like r-n-document-picker handled that in react-native-documents/document-picker#474 , first released in v6.0.5. We upgraded past that version a few commits ago.
f3293d4
to
1c891b9
Compare
Thanks! Looks good; merging. |
ComposeMenu: Offer file picker on iOS, not just Android
I've just tested on my iPhone (13 Pro, running iOS 16.1), and I was
able to upload a file just fine after this change. That was easy!
Fixes: #4586
cc @alya for the UX change
(edited for revision on 2023-01-10; screenshots in a later message)