react-native-image-picker

A React Native module that allows you to use native UI to select media from the device library or directly from the camera.

MIT License

Downloads
1.1M
Stars
8.4K
Committers
179

Bot releases are hidden (Show)

react-native-image-picker - v0.22.12

Published by marcshilling almost 8 years ago

Merged #368 (with some fixes to it) and fixed a crash that was happening with #361

react-native-image-picker - v0.22.11

Published by marcshilling almost 8 years ago

Added the Example project folder to an .npmignore file to reduce disk space and npm install time. Clone the repo or download the zip from Github to run the example from now on.

react-native-image-picker -

Published by yfuks about 8 years ago

[Android]

If cancelButtonTitle options is set to null or '' it will be no more displayed

react-native-image-picker - v0.22.0

Published by marcshilling about 8 years ago

Merged #292 and #296

react-native-image-picker - v0.21.5

Published by marcshilling about 8 years ago

Adds the storageOptions.cameraRoll option to iOS to save the selected photo to the camera roll

react-native-image-picker - v0.21.4

Published by marcshilling about 8 years ago

Finally resolved the Android build folder issue with a prepublish script that will delete it before every publish 👍

react-native-image-picker - v0.21.3

Published by marcshilling about 8 years ago

Fixes #275.

For the record, the .npmignore mentioned in the last version STILL didn't work, so we have the build/ folder published in again in this version...sigh
Remember to delete the build folder on Android if you run into the dex error.

react-native-image-picker - v0.21.2

Published by marcshilling about 8 years ago

Delete the Android build/ folder...again...
Added a redundant .npmignore file that is a copy of .gitignore to hopefully avoid this issue going forward. Although, if .npmignore isn't present, npm is supposed to follow the .gitignore rules, but obviously that doesn't work.................

react-native-image-picker - v0.21.1

Published by marcshilling over 8 years ago

Adds the mixed mediaType option on iOS to display both photos and videos in photo library.

react-native-image-picker - v0.21.0

Published by marcshilling over 8 years ago

As of this release, the allowsEditing option is no longer supported on Android.

Since the inclusion of that option, the number of issues opened on this repo has skyrocketed because the com.android.camera.action.CROP intent that it was using is not supported on all Android devices. Since the goal of this library has always been to provide simple native iOS/Android functionality, having a feature that only works on some devices is not what I want.

Sorry if this disappoints anyone, but I'm fed up with all the issues being created. If you need cropping functionality, there's nothing stopping you from taking the response from the image picker and starting a new cropping intent on your own.

Along with removing this option, this update also upgraded the Example project to React Native 0.29.2, and I've updated the README to reflect the new method of linking native Android libraries that was introduced in React Native 0.29.0.

react-native-image-picker - v0.20.1

Published by marcshilling over 8 years ago

  • iOS permissions robustness. We will now check and request permissions BEFORE launching the camera or picker. If permissions are not granted, you will receive response.error with either Camera permissions not granted or Photo library permissions not granted. You should be able to handle those responses to instruct your users how to proceed.
  • Handle null being passed to customButtons on Android
react-native-image-picker - v0.20.0

Published by marcshilling over 8 years ago

  • Specify all the default options in JS code, which allows a user to omit or specify null for options
  • Improve README
react-native-image-picker -

Published by yfuks over 8 years ago

[Android]

Fix images bad quality when resized #240

react-native-image-picker - v0.19.6

Published by marcshilling over 8 years ago

Bug fixes

react-native-image-picker - v0.19.1

Published by marcshilling over 8 years ago

Checks (and if necessary, requests) necessary permissions at run time to support Android API 23

react-native-image-picker - v0.19.0

Published by marcshilling over 8 years ago

Adds a small index.js file to conceal the NativeModules import from users of this package. Now, the package can be imported simply by doing import ImagePicker from 'react-native-image-picker'. Additionally, I've updated the Example projects to use the latest version of React Native along with this new import syntax.

react-native-image-picker - v0.18.17

Published by marcshilling over 8 years ago

Fixes #207

[Android]

Added path to video response
Added support to take photo on _Android API 16_ (thanks to @ashield)

react-native-image-picker - v0.18.15

Published by marcshilling over 8 years ago

Fixes #180

react-native-image-picker -

Published by yfuks over 8 years ago

[iOS]

Add ref to asset library version in response object #176

[Android]

launchCamera method now return an error if camera is not available

Thanks @chetstone for the iOS work !

react-native-image-picker -

Published by yfuks over 8 years ago

[Android]

Check if camera is available in native code rather than in Manifest

  • Device without camera can now use the module (If camera is not available the button takePhoto will not appear)
  • Since media permission in manifest aren't always granted with Android 6+ the check will work in any case now. #168

if you want to allow device without camera to use the module please change the folowing line in your manifest

<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>