react-native-customizable-image-crop-picker 1.1.1 → 1.1.2
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/README.md +0 -27
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -188,12 +188,6 @@ const result = await openImageCropPicker({
|
|
|
188
188
|
|
|
189
189
|
- [Example](https://github.com/amitkumarcoding/imagecroppicker/blob/main/packages/react-native-customizable-image-crop-picker/example/App.js)
|
|
190
190
|
|
|
191
|
-
|
|
192
|
-
## Optional: JS UI chrome (`ImageCropPickerModal`)
|
|
193
|
-
|
|
194
|
-
This package also exports a **fully customizable React Native modal** (`ImageCropPickerModal`) that you can use as your own UI layer (custom header/footer/buttons). It’s independent from the native crop flow.
|
|
195
|
-
|
|
196
|
-
|
|
197
191
|
## Usage
|
|
198
192
|
|
|
199
193
|
Import:
|
|
@@ -251,8 +245,6 @@ Defaults shown below are the current native defaults.
|
|
|
251
245
|
| Prop | Type | Required | Default | Description |
|
|
252
246
|
| --- | --- | --- | --- | --- |
|
|
253
247
|
| source | `'camera' \| 'gallery'` | Yes | - | Open camera or gallery |
|
|
254
|
-
| multiple | boolean | No | `false` | Pick multiple images (**planned**, not implemented yet) |
|
|
255
|
-
| maxFiles | number | No | - | Max items when `multiple: true` (**planned**) |
|
|
256
248
|
| mediaType | `'photo'` | No | `'photo'` | Media type (photos only) |
|
|
257
249
|
|
|
258
250
|
### Crop options
|
|
@@ -379,25 +371,6 @@ These are read from React Native styles and mapped into native values (subset on
|
|
|
379
371
|
| headerStyle | `{ containerStyle?, titleStyle? }` | No | - | Supports `containerStyle.backgroundColor`, `titleStyle.color/fontSize/fontFamily` |
|
|
380
372
|
| footerStyle | `{ containerStyle?, cancelButtonStyle?, uploadButtonStyle?, cancelTextStyle?, uploadTextStyle? }` | No | - | Supports background/border/textColor/fontSize/fontFamily/borderRadius subset |
|
|
381
373
|
|
|
382
|
-
### JS-only props (ignored by `openImageCropPicker()`)
|
|
383
|
-
|
|
384
|
-
These exist in exported types to support the `ImageCropPickerModal` component. They are currently **not used** by the native `openImageCropPicker()` flow (or its alias `open()`).
|
|
385
|
-
|
|
386
|
-
| Prop | Type | Required | Default | Description |
|
|
387
|
-
| --- | --- | --- | --- | --- |
|
|
388
|
-
| showHeader | boolean | No | - | `ImageCropPickerModal` only |
|
|
389
|
-
| headerAlignment | `'left' \| 'center' \| 'right'` | No | - | `ImageCropPickerModal` only |
|
|
390
|
-
| leftIcon | `React.ReactNode` | No | - | `ImageCropPickerModal` only |
|
|
391
|
-
| rightIcon | `React.ReactNode` | No | - | `ImageCropPickerModal` only |
|
|
392
|
-
| showLeftIcon | boolean | No | - | `ImageCropPickerModal` only |
|
|
393
|
-
| showRightIcon | boolean | No | - | `ImageCropPickerModal` only |
|
|
394
|
-
| showFooter | boolean | No | - | `ImageCropPickerModal` only |
|
|
395
|
-
| cancelIcon | `React.ReactNode` | No | - | `ImageCropPickerModal` only |
|
|
396
|
-
| uploadIcon | `React.ReactNode` | No | - | `ImageCropPickerModal` only |
|
|
397
|
-
| overlayStyle | `CropperOverlayStyle` | No | - | `ImageCropPickerModal` only |
|
|
398
|
-
| backgroundColor | string | No | - | `ImageCropPickerModal` only |
|
|
399
|
-
| safeAreaEnabled | boolean | No | - | `ImageCropPickerModal` only |
|
|
400
|
-
|
|
401
374
|
## Response Object
|
|
402
375
|
|
|
403
376
|
| Property | Type | Description |
|