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-01-19 23:43:22 +01:00
|
|
|
#import <React/RCTBridgeModule.h>
|
|
|
|
#import <React/RCTLog.h>
|
2016-08-26 01:04:38 +02:00
|
|
|
#import "QBImagePicker/QBImagePicker.h"
|
|
|
|
#import "RSKImageCropper/RSKImageCropper.h"
|
|
|
|
#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>
|
|
|
|
|
|
|
|
@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;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|