@widergy/mobile-ui 1.8.0 → 1.8.1
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,10 @@
|
|
|
1
|
+
## [1.8.1](https://github.com/widergy/mobile-ui/compare/v1.8.0...v1.8.1) (2024-05-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* safeareaview for utworkflowcontainer ([#283](https://github.com/widergy/mobile-ui/issues/283)) ([f3bcac4](https://github.com/widergy/mobile-ui/commit/f3bcac45899d6859800264ce7e24c4f09d65ebea))
|
|
7
|
+
|
|
1
8
|
# [1.8.0](https://github.com/widergy/mobile-ui/compare/v1.7.0...v1.8.0) (2024-05-07)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -24,6 +24,7 @@ const UTTopbar = ({
|
|
|
24
24
|
|
|
25
25
|
const ownTheme = theme.UTWorkflowContainer?.topbar?.[colorTheme];
|
|
26
26
|
|
|
27
|
+
// If you are trying to render this in the example of mobile-ui, comment this useFocusEffect block or it will crash
|
|
27
28
|
useFocusEffect(
|
|
28
29
|
useCallback(() => {
|
|
29
30
|
const onBackPress = () => {
|
|
@@ -36,6 +37,7 @@ const UTTopbar = ({
|
|
|
36
37
|
return () => subscription.remove();
|
|
37
38
|
}, [goBack])
|
|
38
39
|
);
|
|
40
|
+
// up to here
|
|
39
41
|
|
|
40
42
|
return (
|
|
41
43
|
<View>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SafeAreaView, ScrollView } from 'react-native';
|
|
3
3
|
import { number, func, shape, bool, string, element } from 'prop-types';
|
|
4
4
|
import { merge } from 'lodash';
|
|
5
5
|
|
|
@@ -40,7 +40,7 @@ const UTWorkflowContainer = ({
|
|
|
40
40
|
const themedStyles = merge({}, ownStyles, theme?.UTWorkflowContainer, style);
|
|
41
41
|
|
|
42
42
|
return (
|
|
43
|
-
<
|
|
43
|
+
<SafeAreaView style={themedStyles.container}>
|
|
44
44
|
{topbar && <UTTopbar {...{ currentStage, currentStep, stages, stepsCount, theme, topbar }} />}
|
|
45
45
|
<ScrollView contentContainerStyle={themedStyles.content}>
|
|
46
46
|
{title && (
|
|
@@ -70,7 +70,7 @@ const UTWorkflowContainer = ({
|
|
|
70
70
|
}}
|
|
71
71
|
/>
|
|
72
72
|
)}
|
|
73
|
-
</
|
|
73
|
+
</SafeAreaView>
|
|
74
74
|
);
|
|
75
75
|
};
|
|
76
76
|
UTWorkflowContainer.propTypes = {
|
package/package.json
CHANGED