2016-05-18 12:07:36 +02:00
|
|
|
//
|
|
|
|
// ImageManager.h
|
|
|
|
//
|
|
|
|
// Created by Ivan Pusic on 5/4/16.
|
|
|
|
// Copyright © 2016 Facebook. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2016-05-31 18:13:55 +02:00
|
|
|
#ifndef RN_IMAGE_CROP_PICKER_h
|
|
|
|
#define RN_IMAGE_CROP_PICKER_h
|
2016-05-18 12:07:36 +02:00
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
2017-02-08 12:28:48 +01:00
|
|
|
|
2017-01-26 10:08:58 -05:00
|
|
|
#if __has_include("RCTBridgeModule.h")
|
|
|
|
#import "RCTBridgeModule.h"
|
2017-02-07 15:00:39 -05:00
|
|
|
#import "RCTImageLoader.h"
|
2017-01-26 10:08:58 -05:00
|
|
|
#else
|
2017-01-19 23:43:22 +01:00
|
|
|
#import <React/RCTBridgeModule.h>
|
2017-02-07 15:00:39 -05:00
|
|
|
#import <React/RCTImageLoader.h>
|
2017-01-26 10:08:58 -05:00
|
|
|
#endif
|
2017-02-08 12:28:48 +01:00
|
|
|
|
2017-04-21 23:58:56 -05:00
|
|
|
#if __has_include("QBImagePicker.h")
|
|
|
|
#import "QBImagePicker.h"
|
|
|
|
#import "RSKImageCropper.h"
|
2017-08-11 02:48:07 +05:30
|
|
|
#else
|
2017-08-24 21:35:41 +02:00
|
|
|
#import "QBImagePicker/QBImagePicker.h"
|
2017-08-11 02:48:07 +05:30
|
|
|
#import <RSKImageCropper/RSKImageCropper.h>
|
2017-04-21 23:58:56 -05:00
|
|
|
#endif
|
|
|
|
|
2016-08-26 01:04:38 +02:00
|
|
|
#import "UIImage-Resize/UIImage+Resize.h"
|
2016-12-24 01:48:38 +01:00
|
|
|
#import "Compression.h"
|
2016-07-27 12:05:06 +02:00
|
|
|
#import <math.h>
|
2016-05-18 12:07:36 +02:00
|
|
|
|
|
|
|
@interface ImageCropPicker : NSObject<
|
|
|
|
RCTBridgeModule,
|
|
|
|
QBImagePickerControllerDelegate,
|
|
|
|
RSKImageCropViewControllerDelegate,
|
|
|
|
RSKImageCropViewControllerDataSource>
|
|
|
|
|
2017-07-25 15:30:37 +08:00
|
|
|
@property (nonatomic, strong) NSMutableDictionary *croppingFile;
|
2016-05-18 12:07:36 +02:00
|
|
|
@property (nonatomic, strong) NSDictionary *defaultOptions;
|
2016-12-24 01:48:38 +01:00
|
|
|
@property (nonatomic, strong) Compression *compression;
|
2016-05-18 12:07:36 +02:00
|
|
|
@property (nonatomic, retain) NSMutableDictionary *options;
|
|
|
|
@property (nonatomic, strong) RCTPromiseResolveBlock resolve;
|
|
|
|
@property (nonatomic, strong) RCTPromiseRejectBlock reject;
|
2017-02-07 15:00:39 -05:00
|
|
|
@property BOOL cropOnly;
|
2016-05-18 12:07:36 +02:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
2017-02-08 12:28:48 +01:00
|
|
|
#endif
|