Revision Date Author Comments
# 44807a1f 19-Sep-2023 Alan Hughes <[email protected]>

[android][image-picker] Support filename and filesize on android (#24524)


# ed5a146c 18-Aug-2023 Alan Hughes <[email protected]>

[image-picker][android] Fix non-serializable type (#23768)


# 6db85061 20-Jul-2023 Alan Hughes <[email protected]>

[android][image-picker] Restore backported photo picker (#23617)


# a5300fd5 01-Jul-2023 Chee Kit <[email protected]>

[android][image-picker] Fix backported photo picker crashing with null intent (#23224)


# f31b4081 03-Jun-2023 Jakov Glavina <[email protected]>

[android][image-picker] Use a more modern and streamlined system image picker (#22658)


# ba4145f8 23-May-2023 Jakov Glavina <[email protected]>

[android][image-picker] use correct MIME types in ImageLibraryContract when mediaTypes is ALL (#22606)

# Why

<!--
Please describe the motivation for this PR, and link to relevant GitHub issues,

[android][image-picker] use correct MIME types in ImageLibraryContract when mediaTypes is ALL (#22606)

# Why

<!--
Please describe the motivation for this PR, and link to relevant GitHub issues, forums posts, or feature requests.
-->

Fixes https://github.com/expo/expo/issues/22602

The problem with the current contract implementation is that if you passed "ALL" as the accepted media types, it would allow `*/*`, which means anything would work, including e.g. `.pdf`s. I think we can safely assume that we should only accept `image/*` and `video/*` in that case.

# How

<!--
How did you build this feature or fix this bug and why?
-->

This PR makes use of `Intent.EXTRA_MIME_TYPES` to achieve this functionality.

# Test Plan

<!--
Please describe how you tested this change and how a reviewer could reproduce your test, especially if this PR does not include automated tests! If possible, please also provide terminal output and/or screenshots demonstrating your test/reproduction.
-->

Verified that I can no longer select `.pdf`s when MediaTypes is ALL

![CleanShot 2023-05-22 at 21 00 36](https://github.com/expo/expo/assets/19533289/9d044587-e394-4624-acae-f17a585e93b7)

Also ensured that the tests pass (not sure why the `launchCameraAsync` one failed - I assume it has something to do with the fact that I was testing in an emulator).
![CleanShot 2023-05-22 at 21 01 45](https://github.com/expo/expo/assets/19533289/7d5d6c7f-f679-43ce-acb9-7202210e8a2e)


# Checklist

<!--
Please check the appropriate items below if they apply to your diff. This is required for changes to Expo modules.
-->

- [ ] Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [X] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin).

show more ...


# 0cb40b8b 12-Jul-2022 Bartłomiej Bukowski <[email protected]>

[image-picker][Android] Add support for selecting multiple media files (#18161)


# 3cc92b0c 28-Jun-2022 Bartłomiej Bukowski <[email protected]>

[emc][image-picker][Android] Migrate to custom `AppContextActivityResultContract` (#17987)


# 104f0ac7 27-Jun-2022 Bartłomiej Bukowski <[email protected]>

[image-picker][Android] Migrate to `registerForActivityResult` (#17671)