mirror of
https://github.com/status-im/react-native-camera-roll.git
synced 2026-08-30 21:01:10 +00:00
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:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user