@supportworks/multi-imagepicker 7.0.1 → 7.0.3

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
@@ -3,6 +3,7 @@
3
3
  * converted components to functional components
4
4
  * made significant UI updates based on DEV-7191 (Photos To Add)
5
5
  * this version likely only useful for RN <= 0.72 due to SafeAreaView changes later
6
+ * plus, this v7 does not have the CameraModal that v8 has, so can't use that in RN 72, non-expo apps
6
7
 
7
8
  # v6.0.0 2025-06-08
8
9
  * removed runtime permissions request for android photos and videos, as necessary for Google Play Store compliance
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supportworks/multi-imagepicker",
3
- "version": "7.0.1",
3
+ "version": "7.0.3",
4
4
  "description": "Android and iOS customized multiple image picker. For react-native >= 0.60.",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -56,16 +56,19 @@ const ImageDetailsModal = (
56
56
  <Text style={[styles.DoneText, !titleValidRef.current ? styles.DoneTextDisabled : null]}>Done</Text>
57
57
  </TouchableOpacity>
58
58
  }
59
- bottomShadow
60
59
  />
60
+ <KeyboardAvoidingView style={styles.KeyboardAvoidingView} behavior={Platform.OS === 'ios' ? 'padding' : 'position'} enabled>
61
+ {/*<ScrollView
62
+ keyboardShouldPersistTaps="handled"
63
+ contentContainerStyle={styles.ScrollContent}
64
+ >*/}
61
65
  <View style={styles.ImageContainer}>
62
66
  <Image
63
67
  source={{ uri: imageUri }}
64
- resizeMode='cover'
68
+ resizeMode='contain'
65
69
  style={[styles.Image]}
66
70
  />
67
71
  </View>
68
- <KeyboardAvoidingView style={styles.KeyboardAvoidingView} behavior={Platform.OS === 'ios' ? 'padding' : 'position'} enabled>
69
72
  <View style={styles.InputContainer}>
70
73
  <TextInputSWMD
71
74
  key={`title-${inputResetKey}`}
@@ -95,6 +98,7 @@ const ImageDetailsModal = (
95
98
  callback={(payload) => setLocalDesc(payload.inputValue)}
96
99
  />
97
100
  </View>
101
+ {/*</ScrollView>*/}
98
102
  </KeyboardAvoidingView>
99
103
  </SafeAreaView>
100
104
  </Modal>
@@ -106,21 +110,30 @@ const styles = StyleSheet.create({
106
110
  flex: 1,
107
111
  backgroundColor: colors.white
108
112
  },
113
+ /*ScrollContent: {
114
+ flexGrow: 1,
115
+ alignItems: 'stretch',
116
+ paddingTop: 8,
117
+ paddingBottom: 24
118
+ },*/
109
119
  ImageContainer: {
110
120
  flex: 1,
111
- margin: 16
121
+ marginHorizontal: 16,
122
+ marginBottom: 8,
123
+ borderRadius: 16,
124
+ backgroundColor: colors.lightgray,
112
125
  },
113
126
  Image: {
114
127
  flex: 1,
115
- borderRadius: 16
128
+ borderRadius: 16,
116
129
  },
117
130
  KeyboardAvoidingView: {
118
131
  flex: 1,
119
- justifyContent: 'flex-end'
132
+ justifyContent: 'flex-start',
120
133
  },
121
134
  InputContainer: {
122
135
  paddingHorizontal: 16,
123
- paddingTop: 8
136
+ paddingTop: 8,
124
137
  },
125
138
  DoneText: {
126
139
  ...stdStyles.S1,
@@ -129,6 +129,7 @@ const SelectedImages = (
129
129
  <MediaPlayer
130
130
  mediaId={mediaIndex}
131
131
  backgroundColor={colors.black}
132
+ colorAppBar={'white'}
132
133
  resourceList={resourceList}
133
134
  initialResource={mediaIndex}
134
135
  annotationAllowed={annotationAllowed}