@widergy/mobile-ui 2.0.1 → 2.1.0

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.0](https://github.com/widergy/mobile-ui/compare/v2.0.2...v2.1.0) (2025-10-17)
2
+
3
+
4
+ ### Features
5
+
6
+ * with back button option ([#460](https://github.com/widergy/mobile-ui/issues/460)) ([f730f54](https://github.com/widergy/mobile-ui/commit/f730f54c4c2c7498040ae434c4c6948cf679aaa4))
7
+
8
+ ## [2.0.2](https://github.com/widergy/mobile-ui/compare/v2.0.1...v2.0.2) (2025-10-08)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * [UGC-?] android adjustable bottomsheet error ([#459](https://github.com/widergy/mobile-ui/issues/459)) ([5e1381f](https://github.com/widergy/mobile-ui/commit/5e1381f8a1c9608285faa0bac58164e4aad1401b))
14
+
1
15
  ## [2.0.1](https://github.com/widergy/mobile-ui/compare/v2.0.0...v2.0.1) (2025-10-06)
2
16
 
3
17
 
@@ -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);
@@ -20,7 +20,7 @@ const UTTopbar = ({
20
20
  stages,
21
21
  stepsCount,
22
22
  theme,
23
- topbar: { colorTheme = 'light', goBack, title, Icon } = {}
23
+ topbar: { colorTheme = 'light', goBack, title, Icon, withBackButton = true } = {}
24
24
  }) => {
25
25
  const ownTheme = theme.UTWorkflowContainer?.topbar?.[colorTheme];
26
26
 
@@ -41,15 +41,17 @@ const UTTopbar = ({
41
41
  return (
42
42
  <View>
43
43
  <View style={[ownStyles.container, ownTheme?.container]}>
44
- <UTButton
45
- dataTestId={goBackTestId}
46
- Icon={Icon || 'IconArrowLeft'}
47
- onPress={goBack}
48
- style={{
49
- root: ownStyles.goBack
50
- }}
51
- variant="text"
52
- />
44
+ {withBackButton && (
45
+ <UTButton
46
+ dataTestId={goBackTestId}
47
+ Icon={Icon || 'IconArrowLeft'}
48
+ onPress={goBack}
49
+ style={{
50
+ root: ownStyles.goBack
51
+ }}
52
+ variant="text"
53
+ />
54
+ )}
53
55
  <UTLabel
54
56
  colorTheme={ownTheme?.text || 'dark'}
55
57
  dataTestId={titleTestId}
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.1",
5
+ "version": "2.1.0",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [