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

feat: migrate to expo-image-picker #6143

Open
wants to merge 17 commits into
base: develop
Choose a base branch
from
Open

Conversation

diegolmello
Copy link
Member

@diegolmello diegolmello commented Feb 18, 2025

Proposed changes

Issue(s)

How to test or reproduce

Screenshots

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Documentation update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Further comments

NATIVE-762

@diegolmello diegolmello marked this pull request as ready for review February 20, 2025 16:50
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);
Copy link
Contributor

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);
Copy link
Contributor

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

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.

2 participants