Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
deleted wrong code which is used in 'react-native-android-permissions'
  • Loading branch information
Dmitry Petukhov authored Jul 12, 2016
1 parent b40526e commit f3954e9
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,6 @@ protected List<ReactPackage> getPackages() {
...
```

And this code to `MainActivity.java` (react-native >= 0.29.0)

```diff
...
+ @Override
+ public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
+ RNPermissionsPackage.onRequestPermissionsResult(requestCode, permissions, grantResults); // very important event callback
+ super.onRequestPermissionsResult(requestCode, permissions, grantResults);
+ }
...
```

**Grant Permission to External storage for Android 5.0 or lower**

Mechanism about granting Android permissions has slightly different since Android 6.0 released, please refer to [Official Document](https://developer.android.com/training/permissions/requesting.html).
Expand Down

0 comments on commit f3954e9

Please sign in to comment.