Expected 1 argument but got 2 on getAsync permissions


Following this example, when I ask for more than one permission, typescript will show error on arguments.


I have imported permission like that
import {Permissions} from “expo”;

and used permission in function like below code its working fine

_pickImage = async () => {
const results = await Promise.all([
if (results.some(({ status }) => status !== “granted”)) {
showMessage(“Missing camera or camera roll permission”);
else {
let pickerResult = await ImagePicker.launchCameraAsync({
allowsEditing: true,
mediaTypes: “Images”


I though about doing that but I thought I was going to get some errors since the prompts are shown one by one. The original error I have is from typescript but when I run the code it works fine. I was just wondering how to get rid of the false warning typescript is giving me.

closed #4

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.