chore: updated readme for scoped storage changes (#280)

to make this project work on android 10 we will need to add android:requestLegacyExternalStorage="true" on application tag.

added that to readme so that people don't waste hours searching for it.
This commit is contained in:
Soumitra Mishra 2021-01-27 07:45:49 +05:30 committed by GitHub
parent e7ffc0bba1
commit 54ba2e9bac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -37,7 +37,15 @@
```
compile project(':@react-native-community_cameraroll')
```
Starting with Android 10, the concept of [scoped storage](https://developer.android.com/training/data-storage#scoped-storage) is introduced. Currently, to make it working with that change, you have to add `android:requestLegacyExternalStorage="true"` to `AndroidManifest.xml`:
```xml
<manifest ... >
<application android:requestLegacyExternalStorage="true" ... >
...
</application>
</manifest>
```
## Migrating from the core `react-native` module
This module was created when the CameraRoll was split out from the core of React Native. To migrate to this module you need to follow the installation instructions above and then change you imports from: