Provides access to user's media library.
For managed managed Expo projects, please follow the installation instructions in the API documentation for the latest stable release. If you follow the link and there is no documentation available then this library is not yet usable within managed projects — it is likely to be included in an upcoming Expo SDK release.
For bare React Native projects, you must ensure that you have installed and configured the
react-native-unimodules package before continuing.
expo install expo-media-library
NSPhotoLibraryUsageDescription key to your
<key>NSPhotoLibraryUsageDescription</key> <string>Give $(PRODUCT_NAME) permission to save photos</string>
pod install in the ios directory after installing the npm package.
android.permission.WRITE_EXTERNAL_STORAGE permissions to your manifest (
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Contributions are very welcome! Please refer to guidelines described in the contributing guide.