@widergy/mobile-ui 1.28.2 → 1.28.3
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.28.3](https://github.com/widergy/mobile-ui/compare/v1.28.2...v1.28.3) (2024-10-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* scroll ref workflow ([#373](https://github.com/widergy/mobile-ui/issues/373)) ([276e0c5](https://github.com/widergy/mobile-ui/commit/276e0c507f5af03be8b5c7e26c464b247c7a3ae1))
|
|
7
|
+
|
|
1
8
|
## [1.28.2](https://github.com/widergy/mobile-ui/compare/v1.28.1...v1.28.2) (2024-10-16)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { ScrollView, View, KeyboardAvoidingView, Keyboard } from 'react-native';
|
|
3
|
-
import { number, func, shape, bool, string, element, oneOfType } from 'prop-types';
|
|
3
|
+
import { number, func, shape, bool, string, element, oneOfType, any } from 'prop-types';
|
|
4
4
|
import { merge } from 'lodash';
|
|
5
5
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
6
6
|
|
|
@@ -28,6 +28,7 @@ const UTWorkflowContainer = ({
|
|
|
28
28
|
requiredFieldInfo,
|
|
29
29
|
returnButton,
|
|
30
30
|
scrollable = true,
|
|
31
|
+
scrollViewRef,
|
|
31
32
|
stages,
|
|
32
33
|
stepsCount,
|
|
33
34
|
style,
|
|
@@ -68,6 +69,7 @@ const UTWorkflowContainer = ({
|
|
|
68
69
|
contentContainerStyle={themedStyles.content}
|
|
69
70
|
keyboardShouldPersistTaps="handled"
|
|
70
71
|
scrollEnabled={scrollable}
|
|
72
|
+
ref={scrollViewRef}
|
|
71
73
|
>
|
|
72
74
|
{title && (
|
|
73
75
|
<UTHeader
|
|
@@ -115,6 +117,8 @@ UTWorkflowContainer.propTypes = {
|
|
|
115
117
|
requiredFieldInfo: string,
|
|
116
118
|
returnButton: ActionButtonPropTypes,
|
|
117
119
|
scrollable: bool,
|
|
120
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
121
|
+
scrollViewRef: shape({ current: any }),
|
|
118
122
|
stages: StagesPropTypes,
|
|
119
123
|
stepsCount: number.isRequired,
|
|
120
124
|
subtitle: oneOfType([string, element]),
|
package/package.json
CHANGED