mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-27 04:05:10 +00:00
react-native: fix lint
This commit is contained in:
parent
d4a77abafa
commit
46c366389f
2 changed files with 4 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue