@onekeyfe/react-native-image-crop-picker 3.0.147
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +83 -0
- package/ReactNativeImageCropPicker.podspec +40 -0
- package/android/CMakeLists.txt +24 -0
- package/android/build.gradle +144 -0
- package/android/gradle.properties +4 -0
- package/android/src/main/AndroidManifest.xml +24 -0
- package/android/src/main/cpp/cpp-adapter.cpp +6 -0
- package/android/src/main/java/com/margelo/nitro/reactnativeimagecroppicker/ImageCropPickerException.kt +45 -0
- package/android/src/main/java/com/margelo/nitro/reactnativeimagecroppicker/ImageCropPickerImageProcessor.kt +308 -0
- package/android/src/main/java/com/margelo/nitro/reactnativeimagecroppicker/ImageCropPickerSession.kt +297 -0
- package/android/src/main/java/com/margelo/nitro/reactnativeimagecroppicker/ReactNativeImageCropPicker.kt +69 -0
- package/android/src/main/java/com/margelo/nitro/reactnativeimagecroppicker/ReactNativeImageCropPickerPackage.kt +24 -0
- package/ios/ImageCropPickerError.swift +57 -0
- package/ios/ImageCropPickerImageProcessor.swift +343 -0
- package/ios/ImageCropPickerSession.swift +407 -0
- package/ios/ReactNativeImageCropPicker.swift +65 -0
- package/ios/TOCropViewController/Categories/UIImage+CropRotate.h +39 -0
- package/ios/TOCropViewController/Categories/UIImage+CropRotate.m +94 -0
- package/ios/TOCropViewController/Constants/TOCropViewConstants.h +63 -0
- package/ios/TOCropViewController/LICENSE +21 -0
- package/ios/TOCropViewController/Models/TOActivityCroppedImageProvider.h +38 -0
- package/ios/TOCropViewController/Models/TOActivityCroppedImageProvider.m +73 -0
- package/ios/TOCropViewController/Models/TOCropViewControllerAspectRatioPreset.h +64 -0
- package/ios/TOCropViewController/Models/TOCropViewControllerAspectRatioPreset.m +121 -0
- package/ios/TOCropViewController/Models/TOCropViewControllerTransitioning.h +49 -0
- package/ios/TOCropViewController/Models/TOCropViewControllerTransitioning.m +125 -0
- package/ios/TOCropViewController/Models/TOCroppedImageAttributes.h +38 -0
- package/ios/TOCropViewController/Models/TOCroppedImageAttributes.m +45 -0
- package/ios/TOCropViewController/Resources/Base.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/PrivacyInfo.xcprivacy +14 -0
- package/ios/TOCropViewController/Resources/ar.lproj/TOCropViewControllerLocalizable.strings +9 -0
- package/ios/TOCropViewController/Resources/ca.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/cs.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/da-DK.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/de.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/en.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/es.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/fa-IR.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/fa.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/fi.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/fr.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/hu.lproj/TOCropViewControllerLocalizable.strings +9 -0
- package/ios/TOCropViewController/Resources/id.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/it.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/ja.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/ko.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/ms.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/nl.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/pl.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/pt-BR.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/pt.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/ro.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/ru.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/sk.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/tr.lproj/TOCropViewControllerLocalizable.strings +9 -0
- package/ios/TOCropViewController/Resources/uk.lproj/TOCropViewControllerLocalizable.strings +8 -0
- package/ios/TOCropViewController/Resources/vi.lproj/TOCropViewControllerLocalizable.strings +9 -0
- package/ios/TOCropViewController/Resources/zh-Hans.lproj/TOCropViewControllerLocalizable.strings +9 -0
- package/ios/TOCropViewController/Resources/zh-Hant.lproj/TOCropViewControllerLocalizable.strings +9 -0
- package/ios/TOCropViewController/TOCropViewController.h +479 -0
- package/ios/TOCropViewController/TOCropViewController.m +1355 -0
- package/ios/TOCropViewController/Views/TOCropOverlayView.h +43 -0
- package/ios/TOCropViewController/Views/TOCropOverlayView.m +240 -0
- package/ios/TOCropViewController/Views/TOCropScrollView.h +39 -0
- package/ios/TOCropViewController/Views/TOCropScrollView.m +48 -0
- package/ios/TOCropViewController/Views/TOCropToolbar.h +104 -0
- package/ios/TOCropViewController/Views/TOCropToolbar.m +783 -0
- package/ios/TOCropViewController/Views/TOCropView.h +311 -0
- package/ios/TOCropViewController/Views/TOCropView.m +1787 -0
- package/lib/module/ReactNativeImageCropPicker.nitro.js +4 -0
- package/lib/module/ReactNativeImageCropPicker.nitro.js.map +1 -0
- package/lib/module/index.js +83 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/ReactNativeImageCropPicker.nitro.d.ts +54 -0
- package/lib/typescript/src/ReactNativeImageCropPicker.nitro.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +31 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/nitro.json +23 -0
- package/nitrogen/generated/android/c++/JCropRect.hpp +69 -0
- package/nitrogen/generated/android/c++/JHybridReactNativeImageCropPickerSpec.cpp +125 -0
- package/nitrogen/generated/android/c++/JHybridReactNativeImageCropPickerSpec.hpp +66 -0
- package/nitrogen/generated/android/c++/JImageCropPickerOptions.hpp +154 -0
- package/nitrogen/generated/android/c++/JPickedImage.hpp +88 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativeimagecroppicker/CropRect.kt +66 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativeimagecroppicker/HybridReactNativeImageCropPickerSpec.kt +69 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativeimagecroppicker/ImageCropPickerOptions.kt +171 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativeimagecroppicker/PickedImage.kt +86 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/reactnativeimagecroppicker/reactnativeimagecroppickerOnLoad.kt +35 -0
- package/nitrogen/generated/android/reactnativeimagecroppicker+autolinking.cmake +81 -0
- package/nitrogen/generated/android/reactnativeimagecroppicker+autolinking.gradle +27 -0
- package/nitrogen/generated/android/reactnativeimagecroppickerOnLoad.cpp +54 -0
- package/nitrogen/generated/android/reactnativeimagecroppickerOnLoad.hpp +34 -0
- package/nitrogen/generated/ios/ReactNativeImageCropPicker+autolinking.rb +62 -0
- package/nitrogen/generated/ios/ReactNativeImageCropPicker-Swift-Cxx-Bridge.cpp +57 -0
- package/nitrogen/generated/ios/ReactNativeImageCropPicker-Swift-Cxx-Bridge.hpp +221 -0
- package/nitrogen/generated/ios/ReactNativeImageCropPicker-Swift-Cxx-Umbrella.hpp +55 -0
- package/nitrogen/generated/ios/ReactNativeImageCropPickerAutolinking.mm +33 -0
- package/nitrogen/generated/ios/ReactNativeImageCropPickerAutolinking.swift +26 -0
- package/nitrogen/generated/ios/c++/HybridReactNativeImageCropPickerSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridReactNativeImageCropPickerSpecSwift.hpp +116 -0
- package/nitrogen/generated/ios/swift/CropRect.swift +44 -0
- package/nitrogen/generated/ios/swift/Func_void.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_PickedImage.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +46 -0
- package/nitrogen/generated/ios/swift/HybridReactNativeImageCropPickerSpec.swift +58 -0
- package/nitrogen/generated/ios/swift/HybridReactNativeImageCropPickerSpec_cxx.swift +202 -0
- package/nitrogen/generated/ios/swift/ImageCropPickerOptions.swift +474 -0
- package/nitrogen/generated/ios/swift/PickedImage.swift +96 -0
- package/nitrogen/generated/shared/c++/CropRect.hpp +95 -0
- package/nitrogen/generated/shared/c++/HybridReactNativeImageCropPickerSpec.cpp +24 -0
- package/nitrogen/generated/shared/c++/HybridReactNativeImageCropPickerSpec.hpp +71 -0
- package/nitrogen/generated/shared/c++/ImageCropPickerOptions.hpp +180 -0
- package/nitrogen/generated/shared/c++/PickedImage.hpp +114 -0
- package/package.json +173 -0
- package/src/ReactNativeImageCropPicker.nitro.ts +72 -0
- package/src/index.tsx +134 -0
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// ImageCropPickerOptions.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Represents an instance of `ImageCropPickerOptions`, backed by a C++ struct.
|
|
12
|
+
*/
|
|
13
|
+
public typealias ImageCropPickerOptions = margelo.nitro.reactnativeimagecroppicker.ImageCropPickerOptions
|
|
14
|
+
|
|
15
|
+
public extension ImageCropPickerOptions {
|
|
16
|
+
private typealias bridge = margelo.nitro.reactnativeimagecroppicker.bridge.swift
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Create a new instance of `ImageCropPickerOptions`.
|
|
20
|
+
*/
|
|
21
|
+
init(width: Double?, height: Double?, cropping: Bool?, includeBase64: Bool?, compressImageQuality: Double?, compressImageMaxWidth: Double?, compressImageMaxHeight: Double?, freeStyleCropEnabled: Bool?, cropperCircleOverlay: Bool?, cropperToolbarTitle: String?, cropperChooseText: String?, cropperCancelText: String?, cropperChooseColor: String?, cropperCancelColor: String?, cropperRotateButtonsHidden: Bool?, cropperActiveWidgetColor: String?, cropperToolbarColor: String?, cropperToolbarWidgetColor: String?, cropperStatusBarLight: Bool?, cropperNavigationBarLight: Bool?, showCropGuidelines: Bool?, showCropFrame: Bool?, enableRotationGesture: Bool?, hideBottomControls: Bool?, disableCropperColorSetters: Bool?) {
|
|
22
|
+
self.init({ () -> bridge.std__optional_double_ in
|
|
23
|
+
if let __unwrappedValue = width {
|
|
24
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
25
|
+
} else {
|
|
26
|
+
return .init()
|
|
27
|
+
}
|
|
28
|
+
}(), { () -> bridge.std__optional_double_ in
|
|
29
|
+
if let __unwrappedValue = height {
|
|
30
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
31
|
+
} else {
|
|
32
|
+
return .init()
|
|
33
|
+
}
|
|
34
|
+
}(), { () -> bridge.std__optional_bool_ in
|
|
35
|
+
if let __unwrappedValue = cropping {
|
|
36
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
37
|
+
} else {
|
|
38
|
+
return .init()
|
|
39
|
+
}
|
|
40
|
+
}(), { () -> bridge.std__optional_bool_ in
|
|
41
|
+
if let __unwrappedValue = includeBase64 {
|
|
42
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
43
|
+
} else {
|
|
44
|
+
return .init()
|
|
45
|
+
}
|
|
46
|
+
}(), { () -> bridge.std__optional_double_ in
|
|
47
|
+
if let __unwrappedValue = compressImageQuality {
|
|
48
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
49
|
+
} else {
|
|
50
|
+
return .init()
|
|
51
|
+
}
|
|
52
|
+
}(), { () -> bridge.std__optional_double_ in
|
|
53
|
+
if let __unwrappedValue = compressImageMaxWidth {
|
|
54
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
55
|
+
} else {
|
|
56
|
+
return .init()
|
|
57
|
+
}
|
|
58
|
+
}(), { () -> bridge.std__optional_double_ in
|
|
59
|
+
if let __unwrappedValue = compressImageMaxHeight {
|
|
60
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
61
|
+
} else {
|
|
62
|
+
return .init()
|
|
63
|
+
}
|
|
64
|
+
}(), { () -> bridge.std__optional_bool_ in
|
|
65
|
+
if let __unwrappedValue = freeStyleCropEnabled {
|
|
66
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
67
|
+
} else {
|
|
68
|
+
return .init()
|
|
69
|
+
}
|
|
70
|
+
}(), { () -> bridge.std__optional_bool_ in
|
|
71
|
+
if let __unwrappedValue = cropperCircleOverlay {
|
|
72
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
73
|
+
} else {
|
|
74
|
+
return .init()
|
|
75
|
+
}
|
|
76
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
77
|
+
if let __unwrappedValue = cropperToolbarTitle {
|
|
78
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
79
|
+
} else {
|
|
80
|
+
return .init()
|
|
81
|
+
}
|
|
82
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
83
|
+
if let __unwrappedValue = cropperChooseText {
|
|
84
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
85
|
+
} else {
|
|
86
|
+
return .init()
|
|
87
|
+
}
|
|
88
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
89
|
+
if let __unwrappedValue = cropperCancelText {
|
|
90
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
91
|
+
} else {
|
|
92
|
+
return .init()
|
|
93
|
+
}
|
|
94
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
95
|
+
if let __unwrappedValue = cropperChooseColor {
|
|
96
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
97
|
+
} else {
|
|
98
|
+
return .init()
|
|
99
|
+
}
|
|
100
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
101
|
+
if let __unwrappedValue = cropperCancelColor {
|
|
102
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
103
|
+
} else {
|
|
104
|
+
return .init()
|
|
105
|
+
}
|
|
106
|
+
}(), { () -> bridge.std__optional_bool_ in
|
|
107
|
+
if let __unwrappedValue = cropperRotateButtonsHidden {
|
|
108
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
109
|
+
} else {
|
|
110
|
+
return .init()
|
|
111
|
+
}
|
|
112
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
113
|
+
if let __unwrappedValue = cropperActiveWidgetColor {
|
|
114
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
115
|
+
} else {
|
|
116
|
+
return .init()
|
|
117
|
+
}
|
|
118
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
119
|
+
if let __unwrappedValue = cropperToolbarColor {
|
|
120
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
121
|
+
} else {
|
|
122
|
+
return .init()
|
|
123
|
+
}
|
|
124
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
125
|
+
if let __unwrappedValue = cropperToolbarWidgetColor {
|
|
126
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
127
|
+
} else {
|
|
128
|
+
return .init()
|
|
129
|
+
}
|
|
130
|
+
}(), { () -> bridge.std__optional_bool_ in
|
|
131
|
+
if let __unwrappedValue = cropperStatusBarLight {
|
|
132
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
133
|
+
} else {
|
|
134
|
+
return .init()
|
|
135
|
+
}
|
|
136
|
+
}(), { () -> bridge.std__optional_bool_ in
|
|
137
|
+
if let __unwrappedValue = cropperNavigationBarLight {
|
|
138
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
139
|
+
} else {
|
|
140
|
+
return .init()
|
|
141
|
+
}
|
|
142
|
+
}(), { () -> bridge.std__optional_bool_ in
|
|
143
|
+
if let __unwrappedValue = showCropGuidelines {
|
|
144
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
145
|
+
} else {
|
|
146
|
+
return .init()
|
|
147
|
+
}
|
|
148
|
+
}(), { () -> bridge.std__optional_bool_ in
|
|
149
|
+
if let __unwrappedValue = showCropFrame {
|
|
150
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
151
|
+
} else {
|
|
152
|
+
return .init()
|
|
153
|
+
}
|
|
154
|
+
}(), { () -> bridge.std__optional_bool_ in
|
|
155
|
+
if let __unwrappedValue = enableRotationGesture {
|
|
156
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
157
|
+
} else {
|
|
158
|
+
return .init()
|
|
159
|
+
}
|
|
160
|
+
}(), { () -> bridge.std__optional_bool_ in
|
|
161
|
+
if let __unwrappedValue = hideBottomControls {
|
|
162
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
163
|
+
} else {
|
|
164
|
+
return .init()
|
|
165
|
+
}
|
|
166
|
+
}(), { () -> bridge.std__optional_bool_ in
|
|
167
|
+
if let __unwrappedValue = disableCropperColorSetters {
|
|
168
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
169
|
+
} else {
|
|
170
|
+
return .init()
|
|
171
|
+
}
|
|
172
|
+
}())
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@inline(__always)
|
|
176
|
+
var width: Double? {
|
|
177
|
+
return { () -> Double? in
|
|
178
|
+
if bridge.has_value_std__optional_double_(self.__width) {
|
|
179
|
+
let __unwrapped = bridge.get_std__optional_double_(self.__width)
|
|
180
|
+
return __unwrapped
|
|
181
|
+
} else {
|
|
182
|
+
return nil
|
|
183
|
+
}
|
|
184
|
+
}()
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
@inline(__always)
|
|
188
|
+
var height: Double? {
|
|
189
|
+
return { () -> Double? in
|
|
190
|
+
if bridge.has_value_std__optional_double_(self.__height) {
|
|
191
|
+
let __unwrapped = bridge.get_std__optional_double_(self.__height)
|
|
192
|
+
return __unwrapped
|
|
193
|
+
} else {
|
|
194
|
+
return nil
|
|
195
|
+
}
|
|
196
|
+
}()
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@inline(__always)
|
|
200
|
+
var cropping: Bool? {
|
|
201
|
+
return { () -> Bool? in
|
|
202
|
+
if bridge.has_value_std__optional_bool_(self.__cropping) {
|
|
203
|
+
let __unwrapped = bridge.get_std__optional_bool_(self.__cropping)
|
|
204
|
+
return __unwrapped
|
|
205
|
+
} else {
|
|
206
|
+
return nil
|
|
207
|
+
}
|
|
208
|
+
}()
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
@inline(__always)
|
|
212
|
+
var includeBase64: Bool? {
|
|
213
|
+
return { () -> Bool? in
|
|
214
|
+
if bridge.has_value_std__optional_bool_(self.__includeBase64) {
|
|
215
|
+
let __unwrapped = bridge.get_std__optional_bool_(self.__includeBase64)
|
|
216
|
+
return __unwrapped
|
|
217
|
+
} else {
|
|
218
|
+
return nil
|
|
219
|
+
}
|
|
220
|
+
}()
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
@inline(__always)
|
|
224
|
+
var compressImageQuality: Double? {
|
|
225
|
+
return { () -> Double? in
|
|
226
|
+
if bridge.has_value_std__optional_double_(self.__compressImageQuality) {
|
|
227
|
+
let __unwrapped = bridge.get_std__optional_double_(self.__compressImageQuality)
|
|
228
|
+
return __unwrapped
|
|
229
|
+
} else {
|
|
230
|
+
return nil
|
|
231
|
+
}
|
|
232
|
+
}()
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
@inline(__always)
|
|
236
|
+
var compressImageMaxWidth: Double? {
|
|
237
|
+
return { () -> Double? in
|
|
238
|
+
if bridge.has_value_std__optional_double_(self.__compressImageMaxWidth) {
|
|
239
|
+
let __unwrapped = bridge.get_std__optional_double_(self.__compressImageMaxWidth)
|
|
240
|
+
return __unwrapped
|
|
241
|
+
} else {
|
|
242
|
+
return nil
|
|
243
|
+
}
|
|
244
|
+
}()
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
@inline(__always)
|
|
248
|
+
var compressImageMaxHeight: Double? {
|
|
249
|
+
return { () -> Double? in
|
|
250
|
+
if bridge.has_value_std__optional_double_(self.__compressImageMaxHeight) {
|
|
251
|
+
let __unwrapped = bridge.get_std__optional_double_(self.__compressImageMaxHeight)
|
|
252
|
+
return __unwrapped
|
|
253
|
+
} else {
|
|
254
|
+
return nil
|
|
255
|
+
}
|
|
256
|
+
}()
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
@inline(__always)
|
|
260
|
+
var freeStyleCropEnabled: Bool? {
|
|
261
|
+
return { () -> Bool? in
|
|
262
|
+
if bridge.has_value_std__optional_bool_(self.__freeStyleCropEnabled) {
|
|
263
|
+
let __unwrapped = bridge.get_std__optional_bool_(self.__freeStyleCropEnabled)
|
|
264
|
+
return __unwrapped
|
|
265
|
+
} else {
|
|
266
|
+
return nil
|
|
267
|
+
}
|
|
268
|
+
}()
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
@inline(__always)
|
|
272
|
+
var cropperCircleOverlay: Bool? {
|
|
273
|
+
return { () -> Bool? in
|
|
274
|
+
if bridge.has_value_std__optional_bool_(self.__cropperCircleOverlay) {
|
|
275
|
+
let __unwrapped = bridge.get_std__optional_bool_(self.__cropperCircleOverlay)
|
|
276
|
+
return __unwrapped
|
|
277
|
+
} else {
|
|
278
|
+
return nil
|
|
279
|
+
}
|
|
280
|
+
}()
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
@inline(__always)
|
|
284
|
+
var cropperToolbarTitle: String? {
|
|
285
|
+
return { () -> String? in
|
|
286
|
+
if bridge.has_value_std__optional_std__string_(self.__cropperToolbarTitle) {
|
|
287
|
+
let __unwrapped = bridge.get_std__optional_std__string_(self.__cropperToolbarTitle)
|
|
288
|
+
return String(__unwrapped)
|
|
289
|
+
} else {
|
|
290
|
+
return nil
|
|
291
|
+
}
|
|
292
|
+
}()
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
@inline(__always)
|
|
296
|
+
var cropperChooseText: String? {
|
|
297
|
+
return { () -> String? in
|
|
298
|
+
if bridge.has_value_std__optional_std__string_(self.__cropperChooseText) {
|
|
299
|
+
let __unwrapped = bridge.get_std__optional_std__string_(self.__cropperChooseText)
|
|
300
|
+
return String(__unwrapped)
|
|
301
|
+
} else {
|
|
302
|
+
return nil
|
|
303
|
+
}
|
|
304
|
+
}()
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
@inline(__always)
|
|
308
|
+
var cropperCancelText: String? {
|
|
309
|
+
return { () -> String? in
|
|
310
|
+
if bridge.has_value_std__optional_std__string_(self.__cropperCancelText) {
|
|
311
|
+
let __unwrapped = bridge.get_std__optional_std__string_(self.__cropperCancelText)
|
|
312
|
+
return String(__unwrapped)
|
|
313
|
+
} else {
|
|
314
|
+
return nil
|
|
315
|
+
}
|
|
316
|
+
}()
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
@inline(__always)
|
|
320
|
+
var cropperChooseColor: String? {
|
|
321
|
+
return { () -> String? in
|
|
322
|
+
if bridge.has_value_std__optional_std__string_(self.__cropperChooseColor) {
|
|
323
|
+
let __unwrapped = bridge.get_std__optional_std__string_(self.__cropperChooseColor)
|
|
324
|
+
return String(__unwrapped)
|
|
325
|
+
} else {
|
|
326
|
+
return nil
|
|
327
|
+
}
|
|
328
|
+
}()
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
@inline(__always)
|
|
332
|
+
var cropperCancelColor: String? {
|
|
333
|
+
return { () -> String? in
|
|
334
|
+
if bridge.has_value_std__optional_std__string_(self.__cropperCancelColor) {
|
|
335
|
+
let __unwrapped = bridge.get_std__optional_std__string_(self.__cropperCancelColor)
|
|
336
|
+
return String(__unwrapped)
|
|
337
|
+
} else {
|
|
338
|
+
return nil
|
|
339
|
+
}
|
|
340
|
+
}()
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
@inline(__always)
|
|
344
|
+
var cropperRotateButtonsHidden: Bool? {
|
|
345
|
+
return { () -> Bool? in
|
|
346
|
+
if bridge.has_value_std__optional_bool_(self.__cropperRotateButtonsHidden) {
|
|
347
|
+
let __unwrapped = bridge.get_std__optional_bool_(self.__cropperRotateButtonsHidden)
|
|
348
|
+
return __unwrapped
|
|
349
|
+
} else {
|
|
350
|
+
return nil
|
|
351
|
+
}
|
|
352
|
+
}()
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
@inline(__always)
|
|
356
|
+
var cropperActiveWidgetColor: String? {
|
|
357
|
+
return { () -> String? in
|
|
358
|
+
if bridge.has_value_std__optional_std__string_(self.__cropperActiveWidgetColor) {
|
|
359
|
+
let __unwrapped = bridge.get_std__optional_std__string_(self.__cropperActiveWidgetColor)
|
|
360
|
+
return String(__unwrapped)
|
|
361
|
+
} else {
|
|
362
|
+
return nil
|
|
363
|
+
}
|
|
364
|
+
}()
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
@inline(__always)
|
|
368
|
+
var cropperToolbarColor: String? {
|
|
369
|
+
return { () -> String? in
|
|
370
|
+
if bridge.has_value_std__optional_std__string_(self.__cropperToolbarColor) {
|
|
371
|
+
let __unwrapped = bridge.get_std__optional_std__string_(self.__cropperToolbarColor)
|
|
372
|
+
return String(__unwrapped)
|
|
373
|
+
} else {
|
|
374
|
+
return nil
|
|
375
|
+
}
|
|
376
|
+
}()
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
@inline(__always)
|
|
380
|
+
var cropperToolbarWidgetColor: String? {
|
|
381
|
+
return { () -> String? in
|
|
382
|
+
if bridge.has_value_std__optional_std__string_(self.__cropperToolbarWidgetColor) {
|
|
383
|
+
let __unwrapped = bridge.get_std__optional_std__string_(self.__cropperToolbarWidgetColor)
|
|
384
|
+
return String(__unwrapped)
|
|
385
|
+
} else {
|
|
386
|
+
return nil
|
|
387
|
+
}
|
|
388
|
+
}()
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
@inline(__always)
|
|
392
|
+
var cropperStatusBarLight: Bool? {
|
|
393
|
+
return { () -> Bool? in
|
|
394
|
+
if bridge.has_value_std__optional_bool_(self.__cropperStatusBarLight) {
|
|
395
|
+
let __unwrapped = bridge.get_std__optional_bool_(self.__cropperStatusBarLight)
|
|
396
|
+
return __unwrapped
|
|
397
|
+
} else {
|
|
398
|
+
return nil
|
|
399
|
+
}
|
|
400
|
+
}()
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
@inline(__always)
|
|
404
|
+
var cropperNavigationBarLight: Bool? {
|
|
405
|
+
return { () -> Bool? in
|
|
406
|
+
if bridge.has_value_std__optional_bool_(self.__cropperNavigationBarLight) {
|
|
407
|
+
let __unwrapped = bridge.get_std__optional_bool_(self.__cropperNavigationBarLight)
|
|
408
|
+
return __unwrapped
|
|
409
|
+
} else {
|
|
410
|
+
return nil
|
|
411
|
+
}
|
|
412
|
+
}()
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
@inline(__always)
|
|
416
|
+
var showCropGuidelines: Bool? {
|
|
417
|
+
return { () -> Bool? in
|
|
418
|
+
if bridge.has_value_std__optional_bool_(self.__showCropGuidelines) {
|
|
419
|
+
let __unwrapped = bridge.get_std__optional_bool_(self.__showCropGuidelines)
|
|
420
|
+
return __unwrapped
|
|
421
|
+
} else {
|
|
422
|
+
return nil
|
|
423
|
+
}
|
|
424
|
+
}()
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
@inline(__always)
|
|
428
|
+
var showCropFrame: Bool? {
|
|
429
|
+
return { () -> Bool? in
|
|
430
|
+
if bridge.has_value_std__optional_bool_(self.__showCropFrame) {
|
|
431
|
+
let __unwrapped = bridge.get_std__optional_bool_(self.__showCropFrame)
|
|
432
|
+
return __unwrapped
|
|
433
|
+
} else {
|
|
434
|
+
return nil
|
|
435
|
+
}
|
|
436
|
+
}()
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
@inline(__always)
|
|
440
|
+
var enableRotationGesture: Bool? {
|
|
441
|
+
return { () -> Bool? in
|
|
442
|
+
if bridge.has_value_std__optional_bool_(self.__enableRotationGesture) {
|
|
443
|
+
let __unwrapped = bridge.get_std__optional_bool_(self.__enableRotationGesture)
|
|
444
|
+
return __unwrapped
|
|
445
|
+
} else {
|
|
446
|
+
return nil
|
|
447
|
+
}
|
|
448
|
+
}()
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
@inline(__always)
|
|
452
|
+
var hideBottomControls: Bool? {
|
|
453
|
+
return { () -> Bool? in
|
|
454
|
+
if bridge.has_value_std__optional_bool_(self.__hideBottomControls) {
|
|
455
|
+
let __unwrapped = bridge.get_std__optional_bool_(self.__hideBottomControls)
|
|
456
|
+
return __unwrapped
|
|
457
|
+
} else {
|
|
458
|
+
return nil
|
|
459
|
+
}
|
|
460
|
+
}()
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
@inline(__always)
|
|
464
|
+
var disableCropperColorSetters: Bool? {
|
|
465
|
+
return { () -> Bool? in
|
|
466
|
+
if bridge.has_value_std__optional_bool_(self.__disableCropperColorSetters) {
|
|
467
|
+
let __unwrapped = bridge.get_std__optional_bool_(self.__disableCropperColorSetters)
|
|
468
|
+
return __unwrapped
|
|
469
|
+
} else {
|
|
470
|
+
return nil
|
|
471
|
+
}
|
|
472
|
+
}()
|
|
473
|
+
}
|
|
474
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// PickedImage.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Represents an instance of `PickedImage`, backed by a C++ struct.
|
|
12
|
+
*/
|
|
13
|
+
public typealias PickedImage = margelo.nitro.reactnativeimagecroppicker.PickedImage
|
|
14
|
+
|
|
15
|
+
public extension PickedImage {
|
|
16
|
+
private typealias bridge = margelo.nitro.reactnativeimagecroppicker.bridge.swift
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Create a new instance of `PickedImage`.
|
|
20
|
+
*/
|
|
21
|
+
init(path: String, size: Double, width: Double, height: Double, mime: String, data: String?, cropRect: CropRect?, filename: String?) {
|
|
22
|
+
self.init(std.string(path), size, width, height, std.string(mime), { () -> bridge.std__optional_std__string_ in
|
|
23
|
+
if let __unwrappedValue = data {
|
|
24
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
25
|
+
} else {
|
|
26
|
+
return .init()
|
|
27
|
+
}
|
|
28
|
+
}(), { () -> bridge.std__optional_CropRect_ in
|
|
29
|
+
if let __unwrappedValue = cropRect {
|
|
30
|
+
return bridge.create_std__optional_CropRect_(__unwrappedValue)
|
|
31
|
+
} else {
|
|
32
|
+
return .init()
|
|
33
|
+
}
|
|
34
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
35
|
+
if let __unwrappedValue = filename {
|
|
36
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
37
|
+
} else {
|
|
38
|
+
return .init()
|
|
39
|
+
}
|
|
40
|
+
}())
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@inline(__always)
|
|
44
|
+
var path: String {
|
|
45
|
+
return String(self.__path)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@inline(__always)
|
|
49
|
+
var size: Double {
|
|
50
|
+
return self.__size
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@inline(__always)
|
|
54
|
+
var width: Double {
|
|
55
|
+
return self.__width
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@inline(__always)
|
|
59
|
+
var height: Double {
|
|
60
|
+
return self.__height
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@inline(__always)
|
|
64
|
+
var mime: String {
|
|
65
|
+
return String(self.__mime)
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@inline(__always)
|
|
69
|
+
var data: String? {
|
|
70
|
+
return { () -> String? in
|
|
71
|
+
if bridge.has_value_std__optional_std__string_(self.__data) {
|
|
72
|
+
let __unwrapped = bridge.get_std__optional_std__string_(self.__data)
|
|
73
|
+
return String(__unwrapped)
|
|
74
|
+
} else {
|
|
75
|
+
return nil
|
|
76
|
+
}
|
|
77
|
+
}()
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@inline(__always)
|
|
81
|
+
var cropRect: CropRect? {
|
|
82
|
+
return self.__cropRect.value
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@inline(__always)
|
|
86
|
+
var filename: String? {
|
|
87
|
+
return { () -> String? in
|
|
88
|
+
if bridge.has_value_std__optional_std__string_(self.__filename) {
|
|
89
|
+
let __unwrapped = bridge.get_std__optional_std__string_(self.__filename)
|
|
90
|
+
return String(__unwrapped)
|
|
91
|
+
} else {
|
|
92
|
+
return nil
|
|
93
|
+
}
|
|
94
|
+
}()
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// CropRect.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#if __has_include(<NitroModules/JSIConverter.hpp>)
|
|
11
|
+
#include <NitroModules/JSIConverter.hpp>
|
|
12
|
+
#else
|
|
13
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
14
|
+
#endif
|
|
15
|
+
#if __has_include(<NitroModules/NitroDefines.hpp>)
|
|
16
|
+
#include <NitroModules/NitroDefines.hpp>
|
|
17
|
+
#else
|
|
18
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
|
+
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
25
|
+
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
+
#else
|
|
28
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
+
#endif
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
namespace margelo::nitro::reactnativeimagecroppicker {
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* A struct which can be represented as a JavaScript object (CropRect).
|
|
39
|
+
*/
|
|
40
|
+
struct CropRect final {
|
|
41
|
+
public:
|
|
42
|
+
double x SWIFT_PRIVATE;
|
|
43
|
+
double y SWIFT_PRIVATE;
|
|
44
|
+
double width SWIFT_PRIVATE;
|
|
45
|
+
double height SWIFT_PRIVATE;
|
|
46
|
+
|
|
47
|
+
public:
|
|
48
|
+
CropRect() = default;
|
|
49
|
+
explicit CropRect(double x, double y, double width, double height): x(x), y(y), width(width), height(height) {}
|
|
50
|
+
|
|
51
|
+
public:
|
|
52
|
+
friend bool operator==(const CropRect& lhs, const CropRect& rhs) = default;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
} // namespace margelo::nitro::reactnativeimagecroppicker
|
|
56
|
+
|
|
57
|
+
namespace margelo::nitro {
|
|
58
|
+
|
|
59
|
+
// C++ CropRect <> JS CropRect (object)
|
|
60
|
+
template <>
|
|
61
|
+
struct JSIConverter<margelo::nitro::reactnativeimagecroppicker::CropRect> final {
|
|
62
|
+
static inline margelo::nitro::reactnativeimagecroppicker::CropRect fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
63
|
+
jsi::Object obj = arg.asObject(runtime);
|
|
64
|
+
return margelo::nitro::reactnativeimagecroppicker::CropRect(
|
|
65
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "x"))),
|
|
66
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "y"))),
|
|
67
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "width"))),
|
|
68
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "height")))
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::reactnativeimagecroppicker::CropRect& arg) {
|
|
72
|
+
jsi::Object obj(runtime);
|
|
73
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "x"), JSIConverter<double>::toJSI(runtime, arg.x));
|
|
74
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "y"), JSIConverter<double>::toJSI(runtime, arg.y));
|
|
75
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "width"), JSIConverter<double>::toJSI(runtime, arg.width));
|
|
76
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "height"), JSIConverter<double>::toJSI(runtime, arg.height));
|
|
77
|
+
return obj;
|
|
78
|
+
}
|
|
79
|
+
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
80
|
+
if (!value.isObject()) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
jsi::Object obj = value.getObject(runtime);
|
|
84
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "x")))) return false;
|
|
88
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "y")))) return false;
|
|
89
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "width")))) return false;
|
|
90
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "height")))) return false;
|
|
91
|
+
return true;
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridReactNativeImageCropPickerSpec.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include "HybridReactNativeImageCropPickerSpec.hpp"
|
|
9
|
+
|
|
10
|
+
namespace margelo::nitro::reactnativeimagecroppicker {
|
|
11
|
+
|
|
12
|
+
void HybridReactNativeImageCropPickerSpec::loadHybridMethods() {
|
|
13
|
+
// load base methods/properties
|
|
14
|
+
HybridObject::loadHybridMethods();
|
|
15
|
+
// load custom methods/properties
|
|
16
|
+
registerHybrids(this, [](Prototype& prototype) {
|
|
17
|
+
prototype.registerHybridMethod("openPicker", &HybridReactNativeImageCropPickerSpec::openPicker);
|
|
18
|
+
prototype.registerHybridMethod("openCropper", &HybridReactNativeImageCropPickerSpec::openCropper);
|
|
19
|
+
prototype.registerHybridMethod("clean", &HybridReactNativeImageCropPickerSpec::clean);
|
|
20
|
+
prototype.registerHybridMethod("cleanSingle", &HybridReactNativeImageCropPickerSpec::cleanSingle);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
} // namespace margelo::nitro::reactnativeimagecroppicker
|