@widergy/mobile-ui 2.1.2 → 2.1.4
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [2.1.4](https://github.com/widergy/mobile-ui/compare/v2.1.3...v2.1.4) (2025-11-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* [CX-1506] fix attachments and camera crash ([#466](https://github.com/widergy/mobile-ui/issues/466)) ([f57a616](https://github.com/widergy/mobile-ui/commit/f57a61660ad32cfe87271756a425a86d6cae51f1))
|
|
7
|
+
|
|
8
|
+
## [2.1.3](https://github.com/widergy/mobile-ui/compare/v2.1.2...v2.1.3) (2025-11-07)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* [CX-1400] keyboard adjustable height bottom sheet ([#463](https://github.com/widergy/mobile-ui/issues/463)) ([0d4dbfb](https://github.com/widergy/mobile-ui/commit/0d4dbfbefa8d31570a4c56e7fd8faa876d90d548))
|
|
14
|
+
|
|
1
15
|
## [2.1.2](https://github.com/widergy/mobile-ui/compare/v2.1.1...v2.1.2) (2025-10-30)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -143,8 +143,6 @@ const MultipleFilePicker = ({
|
|
|
143
143
|
return;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
closeDrawer();
|
|
147
|
-
|
|
148
146
|
let added = 0;
|
|
149
147
|
// eslint-disable-next-line no-restricted-syntax
|
|
150
148
|
for (const asset of documents) {
|
|
@@ -183,6 +181,7 @@ const MultipleFilePicker = ({
|
|
|
183
181
|
rawFile: blobToFile(file, document.type, document.name)
|
|
184
182
|
});
|
|
185
183
|
added += 1;
|
|
184
|
+
closeDrawer();
|
|
186
185
|
}
|
|
187
186
|
|
|
188
187
|
if (documents.length > slots) {
|
|
@@ -295,7 +294,6 @@ const MultipleFilePicker = ({
|
|
|
295
294
|
const openCamera = async () => {
|
|
296
295
|
try {
|
|
297
296
|
const mediaTypes = ExpoImagePicker.MediaType ? [ExpoImagePicker.MediaType.image] : undefined;
|
|
298
|
-
closeDrawer();
|
|
299
297
|
const result = await ExpoImagePicker.launchCameraAsync({
|
|
300
298
|
mediaTypes,
|
|
301
299
|
allowsMultipleSelection: false,
|
|
@@ -355,7 +353,6 @@ const MultipleFilePicker = ({
|
|
|
355
353
|
const openGallery = async () => {
|
|
356
354
|
try {
|
|
357
355
|
const mediaTypes = ExpoImagePicker.MediaType ? [ExpoImagePicker.MediaType.image] : undefined;
|
|
358
|
-
closeDrawer();
|
|
359
356
|
const result = await ExpoImagePicker.launchImageLibraryAsync({
|
|
360
357
|
mediaTypes,
|
|
361
358
|
allowsMultipleSelection: false,
|
|
@@ -55,13 +55,18 @@ const UTBottomSheet = ({
|
|
|
55
55
|
|
|
56
56
|
const theme = useTheme();
|
|
57
57
|
|
|
58
|
-
const handleKeyboardDidShow = useCallback(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
const handleKeyboardDidShow = useCallback(
|
|
59
|
+
e => {
|
|
60
|
+
if (!adjustableHeight) {
|
|
61
|
+
if (IS_IOS) {
|
|
62
|
+
setModalHeight(screenHeight);
|
|
63
|
+
} else {
|
|
64
|
+
setModalHeight(screenHeight - e.endCoordinates.height);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
[adjustableHeight]
|
|
69
|
+
);
|
|
65
70
|
|
|
66
71
|
const handleKeyboardDidHide = useCallback(() => {
|
|
67
72
|
setModalHeight(height);
|
package/package.json
CHANGED