secullum-react-native-ui 4.15.2-beta.3 → 4.15.2-beta.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.
|
@@ -70,15 +70,16 @@ class KeyboardAvoidingView extends React.Component {
|
|
|
70
70
|
this.keyboardDidHideSubscription.remove();
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
|
-
const { refreshControl, scrollEnabled, onScroll, children, keyBoardShow } = this.props;
|
|
73
|
+
const { refreshControl, scrollEnabled, onScroll, children, keyBoardShow, extraFieldHeight, extraWindowHeight } = this.props;
|
|
74
|
+
const { keyboardHeight } = this.state;
|
|
74
75
|
// Android devices with notch will report less `availableHeight` than it should
|
|
75
76
|
// That's because of this: https://github.com/facebook/react-native/issues/23693
|
|
76
77
|
// If I change it to 'screen', Android devices with virtual buttons will report more than it should
|
|
77
|
-
const availableHeight = react_native_1.Dimensions.get('window').height -
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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,
|
|
82
83
|
// @ts-ignore: O react-native não tem auto, mas o react-native-web aceita
|
|
83
84
|
refreshControl: refreshControl, scrollEnabled: scrollEnabled, onScroll: (e) => {
|
|
84
85
|
if (onScroll) {
|
|
@@ -111,9 +111,9 @@ class RangeDatePicker extends React.Component {
|
|
|
111
111
|
const styles = this.getStyles();
|
|
112
112
|
return (React.createElement(react_native_1.TouchableWithoutFeedback, { onPress: this.handleDatePickerPress },
|
|
113
113
|
React.createElement(react_native_1.View, { nativeID: nativeID, testID: (0, test_1.getTestID)(nativeID), style: [styles.container, style] },
|
|
114
|
-
React.createElement(react_native_1.View,
|
|
114
|
+
React.createElement(react_native_1.View, { style: { flex: 1 } },
|
|
115
115
|
React.createElement(react_native_1.Text, { style: styles.label }, label),
|
|
116
|
-
React.createElement(react_native_1.Text, { style: styles.value }, displayText)),
|
|
116
|
+
React.createElement(react_native_1.Text, { numberOfLines: 1, style: styles.value }, displayText)),
|
|
117
117
|
React.createElement(FontAwesome_1.default, { name: "calendar", style: styles.icon }),
|
|
118
118
|
react_native_1.Platform.OS !== 'web' &&
|
|
119
119
|
(showStartDateModal ? (React.createElement(react_native_modal_datetime_picker_1.default, { date: startDate, isVisible: true, onConfirm: this.handleStartDateConfirm, onCancel: this.handleStartDateCancel, isDarkModeEnabled: isDarkModeEnabled,
|