50 lines
1.2 KiB
C
Raw Normal View History

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-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-04-21 23:58:56 -05:00
#if __has_include("QBImagePicker.h")
#import "QBImagePicker.h"
#import "RSKImageCropper.h"
#else
2017-08-24 21:35:41 +02:00
#import "QBImagePicker/QBImagePicker.h"
#import <RSKImageCropper/RSKImageCropper.h>
2017-04-21 23:58:56 -05:00
#endif
#import "UIImage-Resize/UIImage+Resize.h"
#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) NSMutableDictionary *croppingFile;
2016-05-18 12:07:36 +02:00
@property (nonatomic, strong) NSDictionary *defaultOptions;
@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
#endif