-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat: migrate to expo-image-picker #6143
base: develop
Are you sure you want to change the base?
Conversation
508b04f
to
f96915e
Compare
eedacf4
to
aed4f49
Compare
let image = await ImagePicker.openCamera({ ...IMAGE_PICKER_CONFIG, ...libPickerLabels }); | ||
image = forceJpgExtension(image); | ||
const file = image as any; // FIXME: unify those types to remove the need for any | ||
const result = await ImagePicker.launchCameraAsync(IMAGE_PICKER_CONFIG); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found an issue:
- On iOS, if you uninstall and reinstall the app, then try to take a photo, it doesn’t request permission and doesn’t work as shown in the attached video. Maybe we could manually request permission? Expo Docs
Tested on RoomView and EditAvatarView;
iPhone 13 (iOS 17.6.1)
Testflight version 73787
on android everything works as expected.
WhatsApp.Video.2025-02-20.at.15.34.15.mp4
@@ -55,16 +53,19 @@ export const useChooseMedia = ({ | |||
|
|||
const takeVideo = async () => { | |||
try { | |||
const video = await ImagePicker.openCamera({ ...VIDEO_PICKER_CONFIG, ...libPickerLabels }); | |||
const file = video as any; // FIXME: unify those types to remove the need for any | |||
const result = await ImagePicker.launchCameraAsync(VIDEO_PICKER_CONFIG); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found an issue:
- On iOS, if you uninstall and reinstall the app, then try to record a video, it doesn’t request permission and doesn’t work as shown in the attached video. Maybe we could manually request permission? Expo Docs
(Tested on roomView trying to send a video);
iPhone 13 (iOS 17.6.1)
Testflight version 73787
on android everything works as expected.
WhatsApp.Video.2025-02-20.at.15.34.10.mp4
Testflight version 73787
Proposed changes
Issue(s)
How to test or reproduce
Screenshots
Types of changes
Checklist
Further comments
NATIVE-762