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

with-rn-image-crop-picker

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

with-rn-image-crop-picker

An Expo config plugin for painless setup of `react-native-image-crop-picker`

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
690
decreased by-4.83%
Maintainers
1
Weekly downloads
 
Created
Source

with-rn-image-crop-picker

Expo config plugin for react-native-image-crop-picker.

About

This plugin adds the required attributes to the specific files as mentioned in the docs.

iOS

InfoPlist:

  • NSPhotoLibraryUsageDescription
  • NSCameraUsageDescription
  • NSMicrophoneUsageDescription

Android

AndroidManifest: <uses-permission android:name="android.permission.CAMERA"/>

Project build.gradle:

  • maven { url 'https://maven.google.com' }
  • maven { url "https://www.jitpack.io" }

App build.gradle vectorDrawables.useSupportLibrary = true

Important note

Currently there is no support for front-camera.

Requires Expo Dev Client in half-managed workflow. Learn more about:

Usage

  1. Install with Expo
$ expo install with-rn-image-crop-picker
  1. Check your app.json. It should look like this:
 "plugins": [
      "with-rn-image-crop-picker"
    ],
  1. Rebuild your app
$ expo prebuild
$ expo run:ios --device
$ expo run:android --device

Configuartion

You can configure the iOS messages by adding the following props to your app.json file:

  • PhotoLibraryUsageDescription
  • CameraUsageDescription
  • MicrophoneUsageDescription

Example:

"plugins": [
  [
		"with-rn-image-crop-picker",
		{
			"PhotoLibraryUsageDescription": "Allow app XYZ to access your photos",
			"CameraUsageDescription": "Allow app XYZ to access your camera",
			"MicrophoneUsageDescription": "Allow app XYZ to access your microphone"
		}
	]
]

Contributing

Contributions are very welcome!

Support

"Buy Me A Coffee"

FAQs

Package last updated on 10 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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