#if !defined(RCT_NEW_ARCH_ENABLED)

#ifndef RNScanbotCroppingLegacyView_h
#define RNScanbotCroppingLegacyView_h

#import <React/UIView+React.h>
#import <React/RCTComponent.h>

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

@interface RNScanbotCroppingLegacyView: UIView
@property (nonatomic, copy) RCTDirectEventBlock _Nonnull onCroppedAreaResult;
@property (nonatomic, copy) RCTDirectEventBlock _Nonnull onError;

- (void) resetPolygon;
- (void) detectPolygon;
- (void) rotate:(BOOL)value;
- (void) extractCroppedArea;
@end


#endif /* RNScanbotCroppingLegacyView_h */

#endif /* Old Arch */
