Skip to content

[ios] SDK 36 permissions require individual modules to be installed for askAsync to work #6682

@PeterTran0609

Description

@PeterTran0609

🐛 Bug Report

Environment

Expo CLI 3.11.3 environment info:
System:
OS: macOS 10.14.6
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.14.0 - /usr/local/bin/node
Yarn: 1.17.3 - /usr/local/bin/yarn
npm: 6.13.1 - ~/.npm-global/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.6010548
Xcode: 11.2.1/11B500 - /usr/bin/xcodebuild
npmPackages:
@types/react: * => 16.9.17
@types/react-native: ^0.57.65 => 0.57.65
@types/react-navigation: ^2.0.23 => 2.13.10
expo: 36.0.2 => 36.0.2
react: 16.9.0 => 16.9.0
react-native: https://github.com/expo/react-native/archive/sdk-36.0.1.tar.gz => 0.61.4
react-navigation: git+ssh://git@gitlab2.atalink.com:phucdph/bluesky-mobile.git#react-navigation-2.18.3 => 2.18.3
npmGlobalPackages:
expo-cli: 3.11.3

Steps to Reproduce

I'm using this code to check for permission for access to Photo in iOS.

const { status } = await Permissions.askAsync(Permissions.CAMERA_ROLL);

Expected Behavior

return PermissonReponse

Actual Behavior

it return Error: Unrecognized permission: cameraRoll

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions