mirror of
https://github.com/status-im/react-native-cameraroll.git
synced 2025-02-11 09:06:36 +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:
parent
e7ffc0bba1
commit
54ba2e9bac
@ -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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user