react-native-image-picker
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -23,7 +23,4 @@ import React from 'react-native'; | ||
const options = { | ||
title: 'Select Photo', | ||
cancelButtonTitle: 'Cancel', | ||
takePhotoButtonTitle: 'Take Photo...', | ||
chooseFromLibraryButtonTitle: 'Choose from Library...', | ||
quality: 0.2, | ||
title: null, | ||
quality: 0.5, | ||
storageOptions: { | ||
@@ -45,2 +42,3 @@ skipBackup: true | ||
else { | ||
// You can display the image using either: | ||
//const source = {uri: 'data:image/jpeg;base64,' + response.data, isStatic: true}; | ||
@@ -47,0 +45,0 @@ const source = {uri: response.uri.replace('file://', ''), isStatic: true}; |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"description": "A React Native module that allows you to use the native UIImagePickerController UI to select a photo from the device library or directly from the camera.", | ||
@@ -10,0 +10,0 @@ "author": "Marc Shilling (marcshilling)", |
@@ -38,2 +38,3 @@ # react-native-image-picker | ||
allowsEditing: false, // Built in iOS functionality to resize/reposition the image | ||
noData: false, // Disables the base64 `data` field from being generated (greatly improves performance on large photos) | ||
storageOptions: { // if this key is provided, the image will get saved in the documents directory (rather than a temporary directory) | ||
@@ -51,2 +52,3 @@ skipBackup: true, // image will NOT be backed up to icloud | ||
// response.isVertical will be true if the image is vertically oriented | ||
// response.width & response.height give you the image dimensions | ||
UIImagePickerManager.showImagePicker(options, (didCancel, response) => { | ||
@@ -53,0 +55,0 @@ console.log('Response = ', response); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
651100
94
115