secullum-react-native-ui 4.18.4 → 4.18.5

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.
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.KeyboardAvoidingView = void 0;
4
4
  const React = require("react");
5
5
  const react_native_1 = require("react-native");
6
+ const layout_1 = require("../modules/layout");
6
7
  class KeyboardAvoidingView extends React.Component {
7
8
  constructor() {
8
9
  super(...arguments);
@@ -78,16 +79,16 @@ class KeyboardAvoidingView extends React.Component {
78
79
  const availableHeight = react_native_1.Dimensions.get('window').height - keyboardHeight - extraWindowHeight;
79
80
  return (React.createElement(react_native_1.View, { style: [{ height: availableHeight }, !keyBoardShow && { flex: 1 }] },
80
81
  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
82
+ // On Android 15+ (API 35+), with edge-to-edge enforced, the window is not
83
+ // resized when the keyboard appears, so the ScrollView does not gain any
84
+ // scroll room and may hide focused input fields.
85
+ // Related issues on GitLab: 11635, 14734
84
86
  , {
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
87
+ // On Android 15+ (API 35+), with edge-to-edge enforced, the window is not
88
+ // resized when the keyboard appears, so the ScrollView does not gain any
89
+ // scroll room and may hide focused input fields.
90
+ // Related issues on GitLab: 11635, 14734
91
+ contentContainerStyle: (0, layout_1.isEdgeToEdge)() && keyboardHeight > 0
91
92
  ? { paddingBottom: keyboardHeight }
92
93
  : undefined, ref: this.scrollViewRef,
93
94
  // @ts-ignore: O react-native não tem auto, mas o react-native-web aceita
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secullum-react-native-ui",
3
- "version": "4.18.4",
3
+ "version": "4.18.5",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [