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>
|
|
|
|
#import "RCTBridgeModule.h"
|
|
|
|
#import "RCTLog.h"
|
|
|
|
#import <QBImagePickerController/QBImagePickerController.h>
|
|
|
|
#import <RSKImageCropper/RSKImageCropper.h>
|
|
|
|
#import "UIImage+Resize.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;
|
|
|
|
@property (nonatomic, retain) NSMutableDictionary *options;
|
|
|
|
@property (nonatomic, strong) RCTPromiseResolveBlock resolve;
|
|
|
|
@property (nonatomic, strong) RCTPromiseRejectBlock reject;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|