@supportworks/multi-imagepicker 7.0.5 → 7.0.7

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/changes.md CHANGED
@@ -1,4 +1,7 @@
1
1
 
2
+ # v7.0.7 2026-01-22
3
+ * replaced deprecated SafeAreaViews
4
+
2
5
  # v7.0.0 2025-11-21
3
6
  * converted components to functional components
4
7
  * made significant UI updates based on DEV-7191 (Photos To Add)
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.7",
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
  )}
@@ -2,7 +2,6 @@ import React, { useCallback, useEffect, useState, useRef, forwardRef, useImperat
2
2
  import {
3
3
  View,
4
4
  Modal,
5
- SafeAreaView,
6
5
  StyleSheet, ScrollView, KeyboardAvoidingView, Platform, PermissionsAndroid, Alert
7
6
  } from 'react-native'
8
7
  import Moment from 'moment'
@@ -12,7 +11,7 @@ import MultiImagePicker from './MultiImagePicker'
12
11
  import SelectedImages from './SelectedImages'
13
12
  import { colors } from '@supportworks/app-styler'
14
13
  import { LoadingOverlay } from '@supportworks/navbars'
15
- import { CheckBox, AppBarH8, CommonButton, ListItem } from '@supportworks/core-controls'
14
+ import { CheckBox, AppBarH8, CommonButton, ListItem, ScreenSafeAreaView } from '@supportworks/core-controls'
16
15
  import { CameraRoll } from '@react-native-camera-roll/camera-roll'
17
16
  import { Api } from '@supportworks/api-core'
18
17
  import { Analytics } from '@supportworks/analytics'
@@ -417,7 +416,7 @@ const AddImages = forwardRef((
417
416
  if (showAdd) {
418
417
  return (
419
418
  <Modal presentationStyle='fullScreen' animationType='slide'>
420
- <SafeAreaView style={styles.Page}>
419
+ <ScreenSafeAreaView style={styles.Page} edges={['top','bottom']} includeProvider>
421
420
  <AppBarH8
422
421
  variant='regular'
423
422
  title='Photos to Add'
@@ -452,7 +451,7 @@ const AddImages = forwardRef((
452
451
  disabled={!allImageDataValid}
453
452
  />
454
453
  </View>
455
- </SafeAreaView>
454
+ </ScreenSafeAreaView>
456
455
 
457
456
  {Api.getApi().sendPhotosToCRM() && (
458
457
  <UploadWarningModal
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useState, useRef, useCallback } from 'react'
2
- import { Modal, SafeAreaView, View, Image, StyleSheet, TouchableOpacity, Text, KeyboardAvoidingView, Platform } from 'react-native'
3
- import { AppBarH8 } from '@supportworks/core-controls'
2
+ import { Modal, View, Image, StyleSheet, TouchableOpacity, Text, KeyboardAvoidingView, Platform } from 'react-native'
3
+ import { AppBarH8, ScreenSafeAreaView } from '@supportworks/core-controls'
4
4
  import { colors, stdStyles } from '@supportworks/app-styler'
5
5
  import { TextInputSWMD } from '@supportworks/swmaterialdesign'
6
6
 
@@ -42,7 +42,7 @@ const ImageDetailsModal = (
42
42
  visible={visible}
43
43
  onRequestClose={handleClose}
44
44
  >
45
- <SafeAreaView style={styles.Page}>
45
+ <ScreenSafeAreaView style={styles.Page} edges={['top','bottom']} includeProvider>
46
46
  <AppBarH8
47
47
  variant='regular'
48
48
  title=''
@@ -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
  >
@@ -95,7 +96,7 @@ const ImageDetailsModal = (
95
96
  />
96
97
  </View>
97
98
  </KeyboardAvoidingView>
98
- </SafeAreaView>
99
+ </ScreenSafeAreaView>
99
100
  </Modal>
100
101
  )
101
102
  }
@@ -1,12 +1,11 @@
1
1
  import React, { useCallback, useMemo, useEffect, useState } from 'react'
2
2
  import {
3
3
  View,
4
- Modal,
5
- SafeAreaView
4
+ Modal
6
5
  } from 'react-native'
7
6
  import SingleImage from './SingleImage'
8
7
  import { Analytics } from '@supportworks/analytics'
9
- import { MediaPlayer } from '@supportworks/core-controls'
8
+ import { MediaPlayer, ScreenSafeAreaView } from '@supportworks/core-controls'
10
9
  import { colors } from '@supportworks/app-styler'
11
10
  import { Api } from '@supportworks/api-core'
12
11
 
@@ -125,7 +124,7 @@ const SelectedImages = (
125
124
  onRequestClose={closeMedia}
126
125
  visible
127
126
  >
128
- <SafeAreaView style={{ flex: 1, backgroundColor: colors.black }}>
127
+ <ScreenSafeAreaView style={{ flex: 1, backgroundColor: colors.black }} includeProvider>
129
128
  <MediaPlayer
130
129
  mediaId={mediaIndex}
131
130
  backgroundColor={colors.black}
@@ -138,7 +137,7 @@ const SelectedImages = (
138
137
  fullPath={Api.getApi().fullPath}
139
138
  fullImagePath={Api.getApi().fullImagePath}
140
139
  />
141
- </SafeAreaView>
140
+ </ScreenSafeAreaView>
142
141
  </Modal>
143
142
  )}
144
143
  </>
@@ -3,7 +3,6 @@ import {
3
3
  Text,
4
4
  View,
5
5
  Modal,
6
- SafeAreaView,
7
6
  TouchableOpacity,
8
7
  StyleSheet,
9
8
  Image, Dimensions
@@ -17,6 +16,7 @@ import { Analytics } from '@supportworks/analytics'
17
16
  import ActionBar from './ActionBar'
18
17
  import ImageDetailsModal from './ImageDetailsModal'
19
18
  import ImageIndicators from './ImageIndicators'
19
+ import { ScreenSafeAreaView } from '@supportworks/core-controls'
20
20
 
21
21
  const SingleImage = (
22
22
  {
@@ -194,9 +194,9 @@ const SingleImage = (
194
194
  if (showCanvas) {
195
195
  return (
196
196
  <Modal presentationStyle='fullScreen' animationType='slide'>
197
- <SafeAreaView style={styles.Page}>
197
+ <ScreenSafeAreaView style={styles.Page} includeProvider>
198
198
  <Canvas settings={annotationJson.settings} history={annotationJson.history} base64image={'data:image/jpeg;base64,' + canvasData} onSave={onSaveCanvas} onClose={onCloseCanvas} />
199
- </SafeAreaView>
199
+ </ScreenSafeAreaView>
200
200
  </Modal>
201
201
  )
202
202
  }