Skip to content

Commit 15b219f

Browse files
author
glinda93
authored
Add listOptionProps
1 parent 95f7df4 commit 15b219f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ function SelectBox({
142142
toggleIconColor = Colors.primary,
143143
searchInputProps,
144144
multiSelectInputFieldProps,
145+
listOptionProps = {},
145146
} = props
146147
const filteredSuggestions = useMemo(
147148
() => options.filter((suggestion) => suggestion.item.toLowerCase().indexOf(inputValue.toLowerCase()) > -1),
@@ -237,8 +238,9 @@ function SelectBox({
237238
maxToRenderPerBatch={20}
238239
windowSize={10}
239240
ListEmptyComponent={optionListEmpty}
240-
style={kOptionsHeight}
241+
style={[kOptionsHeight, listOptionProps.style]}
241242
ListHeaderComponent={HeaderComponent()}
243+
{...listOptionProps}
242244
/>
243245
)}
244246
</View>

0 commit comments

Comments
 (0)