From 54ba2e9bac765c1270a39e7ceddc9dc9b5887f23 Mon Sep 17 00:00:00 2001 From: Soumitra Mishra Date: Wed, 27 Jan 2021 07:45:49 +0530 Subject: [PATCH] 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. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index b2b31a0..c15b1f1 100644 --- a/README.md +++ b/README.md @@ -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 + + + ... + + +``` ## 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: