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

Added assetRepresentationMode prop #2083

Merged
merged 3 commits into from
May 26, 2023

Conversation

MakarovAleksey
Copy link
Contributor

Motivation (required)

By default there is no way to change the way assets are processed. If the user selects a lot of video files, then the default processing method will greatly affect the performance of the application. loadFileRepresentation takes a long time and gives the user a bad user experience. If the developer can choose the processing mode, then he will be able to more flexibly approach the issue of performance and file processing.

Available processing modes:
https://developer.apple.com/documentation/photokit/phpickerconfiguration/assetrepresentationmode

Additional info:
https://developer.apple.com/documentation/photokit/phpickerconfiguration/3670270-preferredassetrepresentationmode/

Test Plan (required)

No plan, just add some PHPicker configuration option

naWka
naWka previously approved these changes Feb 16, 2023
@Johan-dutoit Johan-dutoit merged commit f2044ee into react-native-image-picker:main May 26, 2023
Johan-dutoit pushed a commit that referenced this pull request May 26, 2023
# [5.4.0](v5.3.1...v5.4.0) (2023-05-26)

### Features

* **video:** Added assetRepresentationMode prop ([#2083](#2083)) ([f2044ee](f2044ee))
@Johan-dutoit
Copy link
Collaborator

🎉 This PR is included in version 5.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants