Socket
Socket
Sign inDemoInstall

@luccasr73/with-rn-image-crop-picker

Package Overview
Dependencies
70
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @luccasr73/with-rn-image-crop-picker

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


Version published
Weekly downloads
16
increased by23.08%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

0.1.4 — 2024-04-08

  • fix import at app.plugin.js

Readme

Source

with-rn-image-crop-picker

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

Why a fork?

The original package(https://github.com/mwegener-com/with-rn-image-crop-picker) appears to no longer be actively maintained, so I forked it to make small updates

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 full support for front-camera on android.

Usage

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

Configuration

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

  • PhotoLibraryUsageDescription
  • CameraUsageDescription
  • MicrophoneUsageDescription

Example:

"plugins": [
  [
  "@luccasr73/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"

Keywords

FAQs

Last updated on 09 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc