Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PermissionsAndroid.RESULTS is undefined #15910

Closed
AdrianZghibarta opened this issue Sep 12, 2017 · 2 comments
Closed

PermissionsAndroid.RESULTS is undefined #15910

AdrianZghibarta opened this issue Sep 12, 2017 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@AdrianZghibarta
Copy link

Is this a bug report?

YES

Have you read the Contributing Guidelines?

NO

Environment

  1. react-native -v: 2.0.1 for react-native-cli and 0.38.0 for react-native
  2. node -v: 7.7.3
  3. npm -v: 4.1.2

Then, specify:

  • Target Platform: Android
  • Development Operating System: macOS Sierra 10.12.6 (16G29)
  • Build tools: 24.0.3

Steps to Reproduce

  1. import PermissionsAndroid from 'react-native' library
  2. try to get PermissionsAndroid.RESULTS.GRANTED
  3. you will get that RESULTS is undefined, in PermissionsAndroid you will have only PERMISSIONS

Expected Behavior

PermissionsAndroid will have PERMISSIONS + RESULTS fields

Actual Behavior

PermissionsAndroid will have PERMISSIONS field without RESULTS field

Reproducible Demo

None :)

@cmdshepard
Copy link

@AdrianZghibarta I think you're looking at the latest documentation - for 0.38.0, the API works a bit differently. Please see the PermissionsAndroid documentation for 0.38. Thanks!

@AdrianZghibarta
Copy link
Author

@cmdshepard yes man, my bad. Thanks a lot!

@facebook facebook locked as resolved and limited conversation to collaborators Sep 12, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Sep 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants