Skip to content

Commit

Permalink
react-native: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Sep 2, 2020
1 parent d4a77ab commit 46c3663
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@uppy/react-native/file-picker/selectImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import * as ImagePicker from 'expo-image-picker'

function selectImageWithExpo (options) {
return new Promise((resolve, reject) => {
// This is a different `Permissions` object than eslint-plugin-compat thinks it is
// eslint-disable-next-line compat/compat
return Permissions.askAsync(Permissions.CAMERA_ROLL)
.then((isAllowed) => {
if (!isAllowed) {
Expand Down
2 changes: 2 additions & 0 deletions packages/@uppy/react-native/file-picker/takePicture.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import * as ImagePicker from 'expo-image-picker'

function takePictureWithExpo (options) {
return new Promise((resolve, reject) => {
// This is a different `Permissions` object than eslint-plugin-compat thinks it is
// eslint-disable-next-line compat/compat
return Permissions.askAsync(Permissions.CAMERA).then((isAllowed) => {
if (!isAllowed) {
return reject(new Error('Permissions denied'))
Expand Down

0 comments on commit 46c3663

Please sign in to comment.