react-native: fix lint

This commit is contained in:
Renée Kooi 2020-09-02 13:21:38 +02:00
parent d4a77abafa
commit 46c366389f
No known key found for this signature in database
GPG key ID: 9940E33D1A44ADBF
2 changed files with 4 additions and 0 deletions

View file

@ -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) {

View file

@ -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'))