0.1.5 • Published 1 year ago

@luccasr73/with-rn-image-crop-picker v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

with-rn-image-crop-picker

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

Why a fork?

The original package appears to no longer be actively maintained, so I forked it to make small updates and support new expo versions

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"/>

App build.gradle vectorDrawables.useSupportLibrary = true

Important note

Currently there is no full support for front-camera on android.

Supported expo version

expo versionplugin version
50.x.x0.1.4
51.x.x0.1.5

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!

0.1.5-alpha.0

1 year ago

0.1.5

1 year ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago