secullum-react-native-ui 4.15.2-beta.5 → 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.
@@ -70,16 +70,26 @@ class KeyboardAvoidingView extends React.Component {
70
70
  this.keyboardDidHideSubscription.remove();
71
71
  }
72
72
  render() {
73
- const { refreshControl, scrollEnabled, onScroll, children, keyBoardShow, extraFieldHeight, extraWindowHeight } = this.props;
73
+ const { refreshControl, scrollEnabled, onScroll, children, keyBoardShow, extraWindowHeight } = this.props;
74
74
  const { keyboardHeight } = this.state;
75
75
  // Android devices with notch will report less `availableHeight` than it should
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, { contentContainerStyle: {
81
- paddingBottom: keyboardHeight + extraFieldHeight
82
- }, ref: this.scrollViewRef,
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secullum-react-native-ui",
3
- "version": "4.15.2-beta.5",
3
+ "version": "4.15.2-beta.7",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [