compose: Make it possible to upload videos (on iOS, and on Android 13+) 🎉 #5734
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before this, it actually wasn't possible to upload videos at all, except perhaps through the share-to-Zulip UI we offer on Android. As I discovered today, it actually seems pretty straightforward to fix.
If this r-n-image-picker upgrade seems too risky, a different approach also seems doable: use
patch-package
(which we've done before; see b546b07) for the small code change that lets us fix #5733, and then also, for #3624, to apply something like react-native-image-picker/react-native-image-picker#1881 or react-native-image-picker/react-native-image-picker#1895. (Hmm, though I notice that latter PR adds dependencies in the package'spackage.json
; perhaps that case is handled bypatch-package
but I'm not sure.)That said, I tested our existing features that use the library. Specifically, on my iPhone 13 Pro (iOS 16) and the office Android device (Samsung Galaxy S9 running Android 9).
I tested the new features on my iPhone 13 Pro running iOS 16. The only new feature on Android here is restricted to Android 13+.
@gnprice, I'd appreciate your testing on a later Android device running Android 13 or later; I tried with an emulator a few times and it didn't boot/respond in a reasonable time. (And a real device is better for testing these changes anyway. 🙂) In particular, I'm interested to know if the existing image-upload flows still work (camera and library), and whether you can now select and upload videos (#3624).
Fixes: #5733
Fixes: #3624