File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ export default App
151151| selectedItemStyle | style object | Default style |
152152searchInputProps | object | Default props |
153153multiSelectInputFieldProps | object | Default props |
154+ | listOptionProps | object | Default props |
154155| arrowIconColor | color string | Default primary color |
155156| searchIconColor | color string | Default primary color |
156157| toggleIconColor | color string | Default primary color |
Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ export default App
151151| selectedItemStyle | style object | Default style |
152152searchInputProps | object | Default props |
153153multiSelectInputFieldProps | object | Default props |
154+ | listOptionProps | object | Default props |
154155| arrowIconColor | color string | Default primary color |
155156| searchIconColor | color string | Default primary color |
156157| toggleIconColor | color string | Default primary color |
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments