Skip to content

Commit

Permalink
[ios][camera] Fix legacy camera getAvailablePictureSizes (#27642)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanjhughes authored and brentvatne committed Mar 13, 2024
1 parent d846eb4 commit 7fafa40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/expo-camera/CHANGELOG.md
Expand Up @@ -23,6 +23,7 @@
- Ensure `mute` prop is passed to native so it is correctly initialiased even when not provided from JS. ([#27546](https://github.com/expo/expo/pull/27546) by [@alanjhughes](https://github.com/alanjhughes))
- On `iOS`, fix camera orientation on initial render. ([#27545](https://github.com/expo/expo/pull/27545) by [@alanjhughes](https://github.com/alanjhughes))
- On `iOS`, fix an issue where the configuration can be interuppted when the dev menu is presented on intial launch. ([#27572](https://github.com/expo/expo/pull/27572) by [@alanjhughes](https://github.com/alanjhughes))
- On `iOS`, fix `getAvailablePictureSizes` in the legacy package. ([#27642](https://github.com/expo/expo/pull/27642) by [@alanjhughes](https://github.com/alanjhughes))

## 14.0.6 — 2024-03-07

Expand Down
4 changes: 3 additions & 1 deletion packages/expo-camera/ios/CameraViewModule.swift
Expand Up @@ -201,7 +201,9 @@ public final class CameraViewModule: Module {

AsyncFunction("getAvailablePictureSizes") { (_: String?, _: Int) in
// Argument types must be compatible with Android which receives the ratio and view tag.
return pictureSizesDict.keys
return pictureSizesDict.map { k, _ in
k
}
}

AsyncFunction("getAvailableVideoCodecsAsync") { () -> [String] in
Expand Down

0 comments on commit 7fafa40

Please sign in to comment.