17.0.4 • Published 3 days ago

expo-media-library v17.0.4

Weekly downloads
16,371
License
MIT
Repository
github
Last release
3 days ago

Provides access to user's media library.

API documentation

Installation in managed Expo projects

For managed Expo projects, please follow the installation instructions in the API documentation for the latest stable release.

Installation in bare React Native projects

For bare React Native projects, you must ensure that you have installed and configured the expo package before continuing.

Add the package to your npm dependencies

npx expo install expo-media-library

Configure for iOS

Add NSPhotoLibraryUsageDescription, and NSPhotoLibraryAddUsageDescription keys to your Info.plist:

<key>NSPhotoLibraryUsageDescription</key>
<string>Give $(PRODUCT_NAME) permission to access your photos</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>Give $(PRODUCT_NAME) permission to save photos</string>

Run npx pod-install after installing the npm package.

Configure for Android

This package automatically adds the READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE permissions. They are used when accessing the user's images or videos.

<!-- Added permissions -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

If you'd like to access asset location (latitude and longitude EXIF tags), you have to add ACCESS_MEDIA_LOCATION permission to the AndroidManifest.xml:

<!-- Add this to AndroidManifest.xml -->
<uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" />

Starting with Android 10, the concept of scoped storage is introduced. Currently, to make expo-media-library working with that change, you have to add android:requestLegacyExternalStorage="true" to AndroidManifest.xml:

<manifest ... >
  <application android:requestLegacyExternalStorage="true" ... >
    ...
  </application>
</manifest>

Contributing

Contributions are very welcome! Please refer to guidelines described in the contributing guide.

@ted2370/expo-multiple-image-pickertenor-gif-boothnatysoz-test@expocraft/coreexpo-media-gallery@everything-registry/sub-chunk-1630webapps-sdksalet-react-native-chat-componentstemp-csv-exporeact-native-web-media-librarytesting-somethingsales-sync-mobilemijonappa2leckr-inputsmake-photomuba-input-filemuba-popup-permissionsmulti-image-select-compress-expoluxe-app-frameworkreact-native-code7-boterianetsomereact-native-fusioncharts-enhancedreact-native-fusionchartreact-native-images-picker-exporeact-native-json-formsreact-native-app-helperstxradicalfaeriesgathering2022@biacibenga/react-native-libtrv-expo@hubspire/expo-app@fmichenaud/expo-multiple-image-picker@infinitebrahmanuniverse/nolb-expo@ezri00/trackapp@mobile-public-skeleton/mobile-components@monceeef/expo-images-picker@kfox/expo@holper/react-native-holper-storybook@pubnub/react-native-chat-components@onytgvx/expo-image-picker-multiple@onytgvx/multiple-image-selectorait-sdkapps-sdkcode7-boteria-mobile-rncash-cropenntte_app_almacen_aratuboenntte_app_almacen_arestantenntte_app_almacen_auxilabenntte_app_almacen_cataenntte_app_almacen_ederlantafallaenntte_app_almacen_garnicaenntte_app_almacen_sabaterenntte_app_almacen_symagaerfan-image-pickercreate-themed-react-native-appexpo-componentsexpo-rubikaexpo-multiple-images-pickerexpo-multiple-images-picker-modalexpo-multiple-media-imagepickerexpo-media-projection-exampleexpensetrackerexpo-file-dlexpo-filedownloadexpo-image-picker-multipleexpo-inputsexpo-hamro-image-pickerexpo-torq@techvox/react-native-image-viewing
17.0.4

3 days ago

17.0.3

30 days ago

17.0.2

2 months ago

17.0.1

2 months ago

17.0.0

2 months ago

16.0.5

3 months ago

16.0.4

6 months ago

16.0.2

8 months ago

16.0.3

8 months ago

16.0.1

8 months ago

16.0.0

8 months ago

15.9.2

8 months ago

15.9.1

1 year ago

15.9.0

1 year ago

15.7.0

1 year ago

15.8.0

1 year ago

15.6.0

1 year ago

15.5.0

1 year ago

15.5.1

1 year ago

15.4.1

1 year ago

15.4.0

2 years ago

15.3.0

2 years ago

15.2.2

2 years ago

15.2.3

2 years ago

15.2.0

2 years ago

15.2.1

2 years ago

15.1.0

2 years ago

15.0.0

2 years ago

14.2.0

2 years ago

14.1.0

3 years ago

14.0.0

3 years ago

14.0.1

3 years ago

13.0.2

3 years ago

13.0.3

3 years ago

13.0.1

3 years ago

13.0.0

3 years ago

12.1.2

3 years ago

12.1.1

4 years ago

12.1.0

4 years ago

12.0.2

4 years ago

12.0.1

4 years ago

12.0.0

4 years ago

11.0.0

4 years ago

10.0.0

4 years ago

9.2.1

4 years ago

9.2.0

4 years ago

9.1.0

4 years ago

9.0.0

4 years ago

8.5.0

4 years ago

8.4.0

4 years ago

8.3.0

4 years ago

8.2.1

5 years ago

8.2.0

5 years ago

8.1.0

5 years ago

8.0.0

5 years ago

8.0.0-rc.0

5 years ago

7.0.0

5 years ago

6.1.0-rc.2

5 years ago

6.1.0-rc.1

5 years ago

6.1.0-rc.0

5 years ago

6.0.0

5 years ago

6.0.0-rc.0

5 years ago

5.0.1

6 years ago

5.0.0

6 years ago

5.0.0-rc.1

6 years ago

5.0.0-rc.0

6 years ago

4.0.0

6 years ago

3.0.0

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

2.0.0-rc.3

6 years ago

2.0.0-rc.2

6 years ago

2.0.0-rc.1

6 years ago

2.0.0-rc.0

6 years ago

1.1.0

6 years ago

1.1.0-rc.1

6 years ago

1.1.0-rc.0

6 years ago

1.0.0

6 years ago

1.0.0-rc.1

6 years ago

1.0.0-rc.0

6 years ago