Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-image-picker

Package Overview
Dependencies
Maintainers
2
Versions
212
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-image-picker - npm Package Compare versions

Comparing version 0.8.0 to 0.9.0

8

Example/index.ios.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc