@supportworks/multi-imagepicker 8.3.6 → 8.3.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supportworks/multi-imagepicker",
3
- "version": "8.3.6",
3
+ "version": "8.3.8",
4
4
  "description": "Android and iOS customized multiple image picker. For react-native >= 0.60.",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -22,6 +22,7 @@ const AddImages = forwardRef((
22
22
  annotationAllowed = false, // whether to allow annotations on images
23
23
  showToCustomerAllowed = false, // whether to allow "show to customer" option
24
24
  maxCount, // = null, //max number of images that can be selected. Passed to MultiImagePicker. If null default not commented out, causes crash, so leave it this way.
25
+ existingCount = 0, // number of images already attached outside of this picker session
25
26
  children
26
27
  }, ref) => {
27
28
  const updateAddImagesProvider = useAddImagesProvider()
@@ -441,7 +442,7 @@ const AddImages = forwardRef((
441
442
  ])
442
443
 
443
444
  return (
444
- !showAdd && !showAttaching && <MultiImagePicker ref={setPickerRef} hitSlop={hitSlop} maxCount={maxCount} parentStyle={parentStyle} callback={onImageSelect}>
445
+ !showAdd && !showAttaching && <MultiImagePicker ref={setPickerRef} hitSlop={hitSlop} maxCount={maxCount} existingCount={existingCount} parentStyle={parentStyle} callback={onImageSelect}>
445
446
  {children}
446
447
  </MultiImagePicker>
447
448
  )