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
Bot releases are hidden (Show)
Published by marcshilling almost 8 years ago
Merged #368 (with some fixes to it) and fixed a crash that was happening with #361
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.
Published by marcshilling about 8 years ago
Merged #292 and #296
Published by marcshilling about 8 years ago
Adds the storageOptions.cameraRoll
option to iOS to save the selected photo to the camera roll
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 👍
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.
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.................
Published by marcshilling over 8 years ago
Adds the mixed
mediaType option on iOS to display both photos and videos in photo library.
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.
Published by marcshilling over 8 years ago
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.null
being passed to customButtons
on AndroidPublished by marcshilling over 8 years ago
null
for optionsPublished by marcshilling over 8 years ago
Bug fixes
Published by marcshilling over 8 years ago
Checks (and if necessary, requests) necessary permissions at run time to support Android API 23
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.
Published by marcshilling over 8 years ago
Fixes #207
Added path
to video response
Added support to take photo on _Android API 16_ (thanks to @ashield)
Published by marcshilling over 8 years ago
Fixes #180
Check if camera is available in native code rather than in Manifest
takePhoto
will not appear)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"/>