mirror of
https://github.com/status-im/react-native-image-crop-picker.git
synced 2025-02-23 10:58:16 +00:00
50 lines
1.2 KiB
Objective-C
50 lines
1.2 KiB
Objective-C
//
|
|
// ImageManager.h
|
|
//
|
|
// Created by Ivan Pusic on 5/4/16.
|
|
// Copyright © 2016 Facebook. All rights reserved.
|
|
//
|
|
|
|
#ifndef RN_IMAGE_CROP_PICKER_h
|
|
#define RN_IMAGE_CROP_PICKER_h
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#if __has_include(<React/RCTBridgeModule.h>)
|
|
#import <React/RCTBridgeModule.h>
|
|
#import <React/RCTImageLoader.h>
|
|
#else
|
|
#import "RCTBridgeModule.h"
|
|
#import "RCTImageLoader.h"
|
|
#endif
|
|
|
|
#if __has_include("QBImagePicker.h")
|
|
#import "QBImagePicker.h"
|
|
#import "RSKImageCropper.h"
|
|
#else
|
|
#import "QBImagePicker/QBImagePicker.h"
|
|
#import <RSKImageCropper/RSKImageCropper.h>
|
|
#endif
|
|
|
|
#import "UIImage-Resize/UIImage+Resize.h"
|
|
#import "Compression.h"
|
|
#import <math.h>
|
|
|
|
@interface ImageCropPicker : NSObject<
|
|
RCTBridgeModule,
|
|
QBImagePickerControllerDelegate,
|
|
RSKImageCropViewControllerDelegate,
|
|
RSKImageCropViewControllerDataSource>
|
|
|
|
@property (nonatomic, strong) NSMutableDictionary *croppingFile;
|
|
@property (nonatomic, strong) NSDictionary *defaultOptions;
|
|
@property (nonatomic, strong) Compression *compression;
|
|
@property (nonatomic, retain) NSMutableDictionary *options;
|
|
@property (nonatomic, strong) RCTPromiseResolveBlock resolve;
|
|
@property (nonatomic, strong) RCTPromiseRejectBlock reject;
|
|
@property BOOL cropOnly;
|
|
|
|
@end
|
|
|
|
#endif
|