@widergy/mobile-ui 2.0.0 → 2.0.2

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,18 @@
1
+ ## [2.0.2](https://github.com/widergy/mobile-ui/compare/v2.0.1...v2.0.2) (2025-10-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * [UGC-?] android adjustable bottomsheet error ([#459](https://github.com/widergy/mobile-ui/issues/459)) ([5e1381f](https://github.com/widergy/mobile-ui/commit/5e1381f8a1c9608285faa0bac58164e4aad1401b))
7
+
8
+ ## [2.0.1](https://github.com/widergy/mobile-ui/compare/v2.0.0...v2.0.1) (2025-10-06)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * [CX-1176] changes action card widy ([162e236](https://github.com/widergy/mobile-ui/commit/162e2363a7fd65912967d15513fd11456ff73cba))
14
+ * add suggestion ([db892b5](https://github.com/widergy/mobile-ui/commit/db892b54bd689d80af05ba869c25022c55fa539d))
15
+
1
16
  # [2.0.0](https://github.com/widergy/mobile-ui/compare/v1.51.0...v2.0.0) (2025-09-22)
2
17
 
3
18
 
@@ -60,6 +60,7 @@ const Header = ({
60
60
  )}
61
61
  </View>
62
62
  </View>
63
+ {renderAdornment(adornment, 'right')}
63
64
  {status ? (
64
65
  <Status
65
66
  {...statusPropsMapper(status, theme)}
@@ -65,7 +65,10 @@ export const statusPropsMapper = (status, theme) => {
65
65
  export const renderAdornment = (adornment, position) => {
66
66
  if (isEmpty(adornment) || adornment.position !== position) return null;
67
67
  const AdornmentComponent = ADORNMENT_COMPONENT_MAPPER[adornment.type];
68
- const defaultPlaceSelf = adornment.position === 'left' ? PLACE_SELF_TYPES.CENTER : PLACE_SELF_TYPES.START;
68
+ const defaultPlaceSelf =
69
+ adornment.position === 'left' || adornment.position === 'right'
70
+ ? PLACE_SELF_TYPES.CENTER
71
+ : PLACE_SELF_TYPES.START;
69
72
 
70
73
  return (
71
74
  <AdornmentComponent
@@ -77,10 +77,13 @@ const UTBottomSheet = ({
77
77
  };
78
78
  }, [handleKeyboardDidShow, handleKeyboardDidHide]);
79
79
 
80
- const onLayout = useCallback(event => {
81
- const { height: layoutHeight } = event.nativeEvent.layout;
82
- if (adjustableHeight) setHeight(layoutHeight);
83
- }, []);
80
+ const onLayout = useCallback(
81
+ event => {
82
+ const { height: layoutHeight } = event.nativeEvent.layout;
83
+ if (adjustableHeight && layoutHeight > 0) setHeight(layoutHeight);
84
+ },
85
+ [adjustableHeight]
86
+ );
84
87
 
85
88
  useEffect(() => {
86
89
  setModalHeight(height);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@widergy/mobile-ui",
3
3
  "description": "Widergy Mobile Components",
4
4
  "author": "widergy",
5
- "version": "2.0.0",
5
+ "version": "2.0.2",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [