From 46c366389f7e8aeee43cb3187a10ddabf0506192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Wed, 2 Sep 2020 13:21:38 +0200 Subject: [PATCH] react-native: fix lint --- packages/@uppy/react-native/file-picker/selectImage.js | 2 ++ packages/@uppy/react-native/file-picker/takePicture.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/@uppy/react-native/file-picker/selectImage.js b/packages/@uppy/react-native/file-picker/selectImage.js index 62f61b96c1..a44f4e3bb3 100644 --- a/packages/@uppy/react-native/file-picker/selectImage.js +++ b/packages/@uppy/react-native/file-picker/selectImage.js @@ -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) { diff --git a/packages/@uppy/react-native/file-picker/takePicture.js b/packages/@uppy/react-native/file-picker/takePicture.js index e4abc4e0ea..77caf463fc 100644 --- a/packages/@uppy/react-native/file-picker/takePicture.js +++ b/packages/@uppy/react-native/file-picker/takePicture.js @@ -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'))