secullum-react-native-ui 4.18.5 → 4.18.6
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.
|
@@ -205,8 +205,7 @@ class DropDown extends React.Component {
|
|
|
205
205
|
modalOverlay: {
|
|
206
206
|
justifyContent: this.shouldDisplaySearchField()
|
|
207
207
|
? 'flex-start'
|
|
208
|
-
: 'center'
|
|
209
|
-
paddingTop: this.shouldDisplaySearchField() && react_native_1.Platform.OS === 'ios' ? 44 : 0
|
|
208
|
+
: 'center'
|
|
210
209
|
},
|
|
211
210
|
modalContainer: {
|
|
212
211
|
maxHeight: '95%',
|
package/lib/components/Modal.js
CHANGED
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Modal = void 0;
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const react_native_safe_area_context_1 = require("react-native-safe-area-context");
|
|
6
|
-
const layout_1 = require("../modules/layout");
|
|
7
6
|
const react_native_1 = require("react-native");
|
|
8
7
|
// From the most specific to the most generic, in the order Yoga resolves each edge.
|
|
9
8
|
// paddingStart/End map to left/right in LTR, which is the only case we support.
|
|
@@ -52,20 +51,17 @@ class Modal extends React.Component {
|
|
|
52
51
|
styles.overlay,
|
|
53
52
|
overlayStyle
|
|
54
53
|
]);
|
|
55
|
-
// sec-issues#14678
|
|
56
|
-
//
|
|
57
|
-
//
|
|
58
|
-
//
|
|
59
|
-
//
|
|
60
|
-
|
|
61
|
-
// of from the bottom.
|
|
62
|
-
const safeAreaStyle = (0, layout_1.isEdgeToEdge)() && insets
|
|
54
|
+
// sec-issues#14678, sec-issues#14736: the modal window covers the
|
|
55
|
+
// system bar areas, so the content has to account for them itself.
|
|
56
|
+
// There is intentionally no platform-specific condition here because
|
|
57
|
+
// the insets are the overlap between the provider view and the system
|
|
58
|
+
// bars, so they already come in as zero when the window does not cover them.
|
|
59
|
+
const safeAreaStyle = insets
|
|
63
60
|
? {
|
|
64
61
|
paddingTop: resolvePadding(flattenedOverlayStyle, 'top') + insets.top,
|
|
65
62
|
paddingBottom: resolvePadding(flattenedOverlayStyle, 'bottom') +
|
|
66
63
|
insets.bottom,
|
|
67
|
-
paddingLeft: resolvePadding(flattenedOverlayStyle, 'left') +
|
|
68
|
-
insets.left,
|
|
64
|
+
paddingLeft: resolvePadding(flattenedOverlayStyle, 'left') + insets.left,
|
|
69
65
|
paddingRight: resolvePadding(flattenedOverlayStyle, 'right') +
|
|
70
66
|
insets.right
|
|
71
67
|
}
|