Skip to content

Commit

Permalink
[expo-image-picker] Fix getCameraPermissionsAsync on web (#7498)
Browse files Browse the repository at this point in the history
* [expo-image-picker] Fix getCameraPermissionsAsync on web

There was a typo in the web-implementation, causing this function to throw an error

* [expo-image-picker] Update changelog

* Update packages/expo-image-picker/CHANGELOG.md

Co-Authored-By: Bartłomiej Bukowski <bartlomiejbukowski.b@gmail.com>

Co-authored-by: Evan Bacon <baconbrix@gmail.com>
Co-authored-by: Bartłomiej Bukowski <bartlomiejbukowski.b@gmail.com>
  • Loading branch information
3 people committed Apr 3, 2020
1 parent 53a55aa commit 7207e79
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions packages/expo-image-picker/CHANGELOG.md
Expand Up @@ -7,3 +7,5 @@
### 🎉 New features

### 🐛 Bug fixes

- Fixed exception when calling `ImagePicker.getCameraPermissionsAsync` on Web. ([#7498](https://github.com/expo/expo/pull/7498) by [@IjzerenHein](https://github.com/IjzerenHein))

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/expo-image-picker/src/ExponentImagePicker.web.ts
Expand Up @@ -44,7 +44,7 @@ export default {
/*
* Delegate to expo-permissions to request camera permissions
*/
async getCameraPermissionAsync() {
async getCameraPermissionsAsync() {
return Permissions.getAsync(Permissions.CAMERA);
},
async requestCameraPermissionsAsync() {
Expand Down

0 comments on commit 7207e79

Please sign in to comment.