Overview:
The react-native-image-crop-picker is a library for iOS and Android that provides image and video picking capabilities with support for camera, video selection, configurable compression, multiple image selection, and cropping features.
Features:
- Support for Camera: Capture images and videos directly from the device’s camera.
- Configurable Compression: Control the compression settings for the selected media.
- Multiple Image Selection: Ability to select multiple images from the gallery.
- Cropping Functionality: Enable or disable cropping for selected images.
- Temporary Image Cleanup: Automatically cleans up temporary images, with options for manual cleanup.
- Customization for iOS: Specific options like avoiding empty space around images.
- Request Object Properties: Specify properties like width, height, and whether to include image exif data.
Installation:
To install the react-native-image-crop-picker library in your project, you can follow these steps:
- If using react-native version >= 0.60, install version >= 0.25.0; else, use version < 0.25.0.
- For react-native-image-crop-picker version >= 0.39.0, set android compileSdkVersion to 33 or greater.
- Make sure to handle the prop ‘cropping’ carefully on Android to avoid issues with video display in the gallery.
npm install react-native-image-crop-picker
Summary:
The react-native-image-crop-picker library is a versatile solution for handling image and video selection in React Native apps. With features like camera support, cropping functionality, and customizable options, it offers a seamless experience for developers looking to incorporate media capabilities in their applications.