@supportworks/multi-imagepicker 8.0.5 → 8.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
+ # v8.0.7 2025-11-26
3
+ * fixed issue with landscape mode having keyboard covering text inputs on ImageDetailsModal
4
+
2
5
  # v8.0.5 2025-11-25
3
6
  * restored the correct v5 core-controls dependency
4
7
  * added colorAppBar prop to SelectedImages to fix app bar color customization
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supportworks/multi-imagepicker",
3
- "version": "8.0.5",
3
+ "version": "8.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": {
@@ -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,
@@ -274,8 +274,8 @@ const MultiImagePicker = forwardRef((props, ref) => {
274
274
  case takePhotoIndex:
275
275
  console.log('User pressed take photo')
276
276
 
277
- // Use CameraModal on iOS, native camera on Android
278
- if (Platform.OS === 'ios') {
277
+ // Use CameraModal on iOS 26+, native camera on Android
278
+ if (Platform.OS === 'ios' && parseInt(Platform.Version,10) >= 26) {
279
279
  setPendingPickerIndex(index)
280
280
  setPendingCancelIndex(cancelIndex)
281
281
  setShowCameraModal(true)