expo-image-picker
Provides access to the system's UI for selecting images and videos from the phone's library or taking a photo with the camera.
Last updated a month ago by brentvatne .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install expo-image-picker 
SYNC missed versions from official npm registry.

expo-image-picker

Provides access to the system's UI for selecting images and videos from the phone's library or taking a photo with the camera.

API documentation

Installation in managed Expo projects

For managed 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 react-native-unimodules package before continuing.

Add the package to your npm dependencies

expo install expo-image-picker

Configure for iOS

Add NSPhotoLibraryUsageDescription key to your Info.plist:

<key>NSPhotoLibraryUsageDescription</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 CAMERA, READ_EXTERNAL_STORAGE, and WRITE_EXTERNAL_STORAGE permissions. They are used when picking images from the camera directly, or from the camera roll.

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

In AndroidManifest.xml add the following activity within application:

<activity
  android:name="com.theartofdev.edmodo.cropper.CropImageActivity"
  android:theme="@style/Base.Theme.AppCompat">
</activity>

Contributing

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

Current Tags

  • 9.1.1                                ...           latest (a month ago)
  • 9.1.1                                ...           next (a month ago)

22 Versions

  • 9.1.1                                ...           a month ago
  • 9.1.0                                ...           2 months ago
  • 9.0.0                                ...           3 months ago
  • 8.4.0                                ...           3 months ago
  • 8.3.0                                ...           5 months ago
  • 8.2.0                                ...           5 months ago
  • 8.1.0                                ...           8 months ago
  • 8.0.2                                ...           10 months ago
  • 8.0.1                                ...           a year ago
  • 8.0.0                                ...           a year ago
  • 7.0.0                                ...           a year ago
  • 7.0.0-rc.0                                ...           a year ago
  • 6.0.0                                ...           a year ago
  • 6.0.0-rc.0                                ...           a year ago
  • 5.0.2                                ...           a year ago
  • 5.0.1                                ...           a year ago
  • 5.0.0                                ...           a year ago
  • 5.0.0-rc.1                                ...           a year ago
  • 5.0.0-rc.0                                ...           a year ago
  • 4.0.0                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago

Copyright 2014 - 2017 © taobao.org |