secullum-react-native-ui 4.15.2-beta.6 → 4.15.2-beta.7
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.
|
@@ -76,10 +76,20 @@ class KeyboardAvoidingView extends React.Component {
|
|
|
76
76
|
// That's because of this: https://github.com/facebook/react-native/issues/23693
|
|
77
77
|
// If I change it to 'screen', Android devices with virtual buttons will report more than it should
|
|
78
78
|
const availableHeight = react_native_1.Dimensions.get('window').height - keyboardHeight - extraWindowHeight;
|
|
79
|
-
return (React.createElement(react_native_1.View, { style: !keyBoardShow && { flex: 1 } },
|
|
80
|
-
React.createElement(react_native_1.ScrollView
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
return (React.createElement(react_native_1.View, { style: [{ height: availableHeight }, !keyBoardShow && { flex: 1 }] },
|
|
80
|
+
React.createElement(react_native_1.ScrollView
|
|
81
|
+
// On Android 15 (API 35) devices, when the keyboard appears,
|
|
82
|
+
// the ScrollView does not resize correctly and may hide focused input fields.
|
|
83
|
+
// Related issue on GitLab: 11635
|
|
84
|
+
, {
|
|
85
|
+
// On Android 15 (API 35) devices, when the keyboard appears,
|
|
86
|
+
// the ScrollView does not resize correctly and may hide focused input fields.
|
|
87
|
+
// Related issue on GitLab: 11635
|
|
88
|
+
contentContainerStyle: react_native_1.Platform.OS === 'android' &&
|
|
89
|
+
react_native_1.Platform.Version === 35 &&
|
|
90
|
+
keyboardHeight > 0
|
|
91
|
+
? { paddingBottom: keyboardHeight }
|
|
92
|
+
: undefined, ref: this.scrollViewRef,
|
|
83
93
|
// @ts-ignore: O react-native não tem auto, mas o react-native-web aceita
|
|
84
94
|
refreshControl: refreshControl, scrollEnabled: scrollEnabled, onScroll: (e) => {
|
|
85
95
|
if (onScroll) {
|