diff --git a/src/components/CategoryPicker.tsx b/src/components/CategoryPicker.tsx index a5ff3a8f1704..0018cfce0c94 100644 --- a/src/components/CategoryPicker.tsx +++ b/src/components/CategoryPicker.tsx @@ -85,7 +85,6 @@ function CategoryPicker({selectedCategory, policyID, onSubmit, addBottomSafeArea onSelectRow={onSubmit} ListItem={RadioListItem} initiallyFocusedOptionKey={selectedOptionKey ?? undefined} - isRowMultilineSupported addBottomSafeAreaPadding={addBottomSafeAreaPadding} contentContainerStyle={contentContainerStyle} /> diff --git a/src/components/DestinationPicker.tsx b/src/components/DestinationPicker.tsx index da3fd6692c0d..7ac28bb4c265 100644 --- a/src/components/DestinationPicker.tsx +++ b/src/components/DestinationPicker.tsx @@ -78,7 +78,6 @@ function DestinationPicker({selectedDestination, policyID, onSubmit}: Destinatio onSelectRow={onSubmit} ListItem={RadioListItem} initiallyFocusedOptionKey={selectedOptionKey ?? undefined} - isRowMultilineSupported shouldHideKeyboardOnScroll={false} /> ); diff --git a/src/components/SelectionListWithSections/MultiSelectListItem.tsx b/src/components/SelectionListWithSections/MultiSelectListItem.tsx index fd0e9dafd4fd..f6b3b5e42f07 100644 --- a/src/components/SelectionListWithSections/MultiSelectListItem.tsx +++ b/src/components/SelectionListWithSections/MultiSelectListItem.tsx @@ -35,9 +35,10 @@ function MultiSelectListItem({ accessibilityLabel={item.text ?? ''} onPress={() => onSelectRow(item)} isIndeterminate={item.isIndeterminate} + style={[isMultilineSupported ? styles.ml3 : null]} /> ); - }, [isSelected, item, onSelectRow]); + }, [isMultilineSupported, isSelected, item, onSelectRow, styles.ml3]); return ( ({shouldHideKeyboardOn } Keyboard.dismiss(); }} + isRowMultilineSupported /> ); } diff --git a/src/components/SelectionListWithSections/index.tsx b/src/components/SelectionListWithSections/index.tsx index cabc649e0541..258152bec107 100644 --- a/src/components/SelectionListWithSections/index.tsx +++ b/src/components/SelectionListWithSections/index.tsx @@ -104,6 +104,7 @@ function SelectionListWithSections({onScroll, shouldHide // For example, a long press will trigger a focus event on mobile chrome. shouldIgnoreFocus={isMobileChrome() && isScreenTouched} shouldDebounceScrolling={shouldDebounceScrolling} + isRowMultilineSupported shouldDisableHoverStyle={shouldDisableHoverStyle} setShouldDisableHoverStyle={setShouldDisableHoverStyle} /> diff --git a/src/components/TagPicker.tsx b/src/components/TagPicker.tsx index 29ab00a9e533..60e07fe20b32 100644 --- a/src/components/TagPicker.tsx +++ b/src/components/TagPicker.tsx @@ -143,7 +143,6 @@ function TagPicker({ textInputValue={searchValue} headerMessage={headerMessage} textInputLabel={shouldShowTextInput ? translate('common.search') : undefined} - isRowMultilineSupported initiallyFocusedOptionKey={selectedOptionKey} onChangeText={setSearchValue} onSelectRow={onSubmit} diff --git a/src/components/TaxPicker.tsx b/src/components/TaxPicker.tsx index 7151f65642af..e9e976fab4cf 100644 --- a/src/components/TaxPicker.tsx +++ b/src/components/TaxPicker.tsx @@ -119,7 +119,6 @@ function TaxPicker({selectedTaxRate = '', policyID, transactionID, onSubmit, act onSelectRow={handleSelectRow} ListItem={RadioListItem} initiallyFocusedOptionKey={selectedOptionKey ?? undefined} - isRowMultilineSupported addBottomSafeAreaPadding={addBottomSafeAreaPadding} /> ); diff --git a/src/pages/Debug/ConstantPicker.tsx b/src/pages/Debug/ConstantPicker.tsx index 49e1acb4d541..fd39d6928aac 100644 --- a/src/pages/Debug/ConstantPicker.tsx +++ b/src/pages/Debug/ConstantPicker.tsx @@ -69,7 +69,6 @@ function ConstantPicker({formType, fieldName, fieldValue, onSubmit}: ConstantPic onSelectRow={onSubmit} ListItem={RadioListItem} initiallyFocusedItemKey={selectedOptionKey} - isRowMultilineSupported /> ); } diff --git a/src/pages/EditReportFieldDropdown.tsx b/src/pages/EditReportFieldDropdown.tsx index 06c4641c40e3..9d7ea27d5c98 100644 --- a/src/pages/EditReportFieldDropdown.tsx +++ b/src/pages/EditReportFieldDropdown.tsx @@ -83,7 +83,6 @@ function EditReportFieldDropdownPage({onSubmit, fieldKey, fieldValue, fieldOptio onChangeText={setSearchValue} headerMessage={headerMessage} ListItem={RadioListItem} - isRowMultilineSupported rightHandSideComponent={itemRightSideComponent} /> ); diff --git a/src/pages/workspace/accounting/netsuite/import/NetSuiteImportCustomFieldNew/NetSuiteCustomListSelectorModal.tsx b/src/pages/workspace/accounting/netsuite/import/NetSuiteImportCustomFieldNew/NetSuiteCustomListSelectorModal.tsx index 33afbd57964e..9849ec967a11 100644 --- a/src/pages/workspace/accounting/netsuite/import/NetSuiteImportCustomFieldNew/NetSuiteCustomListSelectorModal.tsx +++ b/src/pages/workspace/accounting/netsuite/import/NetSuiteImportCustomFieldNew/NetSuiteCustomListSelectorModal.tsx @@ -91,7 +91,6 @@ function NetSuiteCustomListSelectorModal({isVisible, currentCustomListValue, onC onSelectRow={onCustomListSelected} headerMessage={headerMessage} ListItem={RadioListItem} - isRowMultilineSupported initiallyFocusedOptionKey={currentCustomListValue} shouldSingleExecuteRowSelect shouldStopPropagation diff --git a/src/styles/index.ts b/src/styles/index.ts index 59910c795bb4..ffeb578b3192 100644 --- a/src/styles/index.ts +++ b/src/styles/index.ts @@ -1839,7 +1839,6 @@ const staticStyles = (theme: ThemeColors) => }, optionRowCompact: { - height: variables.optionRowHeightCompact, minHeight: variables.optionRowHeightCompact, paddingTop: 12, paddingBottom: 12,