fine tuned dropdown height mechanism

This commit is contained in:
Nouman Tahir 2022-04-17 01:51:38 +05:00
parent e6ed116e3a
commit ecee8d168c

View File

@ -75,7 +75,7 @@ const DropdownButtonView = ({
renderRowProps={{ underlayColor: EStyleSheet.value('$modalBackground'), style:styles.rowWrapper}}
style={[!style ? styles.button : style]}
textStyle={[textStyle || styles.buttonText]}
dropdownStyle={[styles.dropdown, dropdownStyle, !selectedOptionIndex && { height: 35 * (options.length + 1) }]}
dropdownStyle={[styles.dropdown, dropdownStyle, { height: 32 * (options.length + 1) }]}
dropdownTextStyle={[dropdownTextStyle || styles.dropdownText]}
dropdownTextHighlightStyle={styles.dropdownTextHighlight}
options={options}