Browse Source

react-native: fix lint

Renée Kooi 4 years ago
parent
commit
46c366389f

+ 2 - 0
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) {

+ 2 - 0
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'))