How to use the react-native-image-picker.default.showImagePicker function in react-native-image-picker

To help you get started, we’ve selected a few react-native-image-picker examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-chunky / react-native-chunky / src / utils / photo.js View on Github external
return new Promise((resolve, reject) => {
    ImagePicker.showImagePicker({ title,
        storageOptions: {
          skipBackup: true,
          path: 'images'
        }
    }, (response) => {
      if (response.error) {
        reject(response.error)
        return
      }

      resolve(response.didCancel ? "" : resize(response.data, width, height))
    })
  })
}

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
Latest version published 2 months ago

Package Health Score

95 / 100
Full package analysis