@supportworks/multi-imagepicker 7.0.5 → 7.0.6

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": "7.0.5",
3
+ "version": "7.0.6",
4
4
  "description": "Android and iOS customized multiple image picker. For react-native >= 0.60.",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -33,12 +33,12 @@ const ActionBar = (
33
33
  {false && <TouchableOpacity style={styles.IconContainer} onPress={onPressDetails}>
34
34
  <Icons.IconArrowRightTop />
35
35
  </TouchableOpacity>}
36
- <TouchableOpacity style={styles.IconContainer} onPress={onPressDetails}>
36
+ <TouchableOpacity style={[styles.IconContainer, (!allowSaveToDevice && !annotationAllowed && !allowShowToCustomer) ? styles.IconContainerLast : null]} onPress={onPressDetails}>
37
37
  <Icons.IconNotesWrite />
38
38
  </TouchableOpacity>
39
39
  {allowSaveToDevice && (
40
40
  <TouchableOpacity
41
- style={styles.IconContainer}
41
+ style={[styles.IconContainer, (!annotationAllowed && !allowShowToCustomer) ? styles.IconContainerLast : null]}
42
42
  onPress={onToggleSaveToDevice}
43
43
  >
44
44
  {saveToDevice
@@ -47,7 +47,7 @@ const ActionBar = (
47
47
  </TouchableOpacity>
48
48
  )}
49
49
  {annotationAllowed && (
50
- <TouchableOpacity style={styles.IconContainer} onPress={onAnnotate}>
50
+ <TouchableOpacity style={[styles.IconContainer, !allowShowToCustomer ? styles.IconContainerLast : null]} onPress={onAnnotate}>
51
51
  <Icons.IconAnnotate />
52
52
  </TouchableOpacity>
53
53
  )}
@@ -50,6 +50,7 @@ const ImageDetailsModal = (
50
50
  callback={handleClose}
51
51
  rightContent={
52
52
  <TouchableOpacity
53
+ hitSlop={{ top: 20, bottom: 20, left: 20, right: 20 }}
53
54
  onPress={onDone}
54
55
  disabled={!titleValidRef.current}
55
56
  >