Skip to content

Commit 486ea65

Browse files
committed
Fix modal header bug.
1 parent 30ec155 commit 486ea65

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/Picker.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,8 +1019,10 @@ function Picker({
10191019
*/
10201020
const _searchContainerStyle = useMemo(() => ([
10211021
RTL_DIRECTION(rtl, THEME.searchContainer),
1022-
...[searchContainerStyle].flat()
1023-
]), [rtl, searchContainerStyle, THEME]);
1022+
...[searchContainerStyle].flat(), ! searchable && listMode === LIST_MODE.MODAL && {
1023+
flexDirection: 'row-reverse'
1024+
}
1025+
]), [rtl, listMode, searchable, searchContainerStyle, THEME]);
10241026

10251027
/**
10261028
* The search text input style.
@@ -1260,6 +1262,7 @@ function Picker({
12601262
disabledItemContainerStyle={_disabledItemContainerStyle}
12611263
disabledItemLabelStyle={_disabledItemLabelStyle}
12621264
categorySelectable={categorySelectable}
1265+
listMode={listMode}
12631266
onPress={onPressItem}
12641267
theme={theme}
12651268
THEME={THEME}
@@ -1287,6 +1290,7 @@ function Picker({
12871290
_value,
12881291
multiple,
12891292
categorySelectable,
1293+
listMode,
12901294
onPressItem,
12911295
theme,
12921296
THEME

0 commit comments

Comments
 (0)