File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,8 @@ Change valueExtractor and pass the data to Autocomplete without fetchDataUrl
155155 listHeaderTextStyle | Styles for list header text | Object | -
156156 overlayStyle | Styles for overlay view | Object | -
157157 pickerStyle | Styles for item picker view | Object | -
158- containerStyle | Styles for dropdown container view | Object | -
158+ containerStyle | Styles for dropdown container view | Object | -
159+ scrollStyle | Styles for dropdown flatlist | Object | -
159160 scrollToInput | Focus on selected field | Function | -
160161 handleSelectItem | Selection callback (agrs: item, index) | Function | -
161162 onDropdownShow | Show keyboard | Function | -
Original file line number Diff line number Diff line change @@ -454,6 +454,7 @@ export default class Dropdown extends PureComponent {
454454 render ( ) {
455455 const {
456456 containerStyle,
457+ scrollStyle,
457458 overlayStyle : overlayStyleOverrides ,
458459 pickerStyle : pickerStyleOverrides ,
459460 supportedOrientations,
@@ -497,7 +498,7 @@ export default class Dropdown extends PureComponent {
497498 keyboardShouldPersistTaps = "always"
498499 ref = { this . updateScrollRef }
499500 data = { itemData }
500- style = { styles . scroll }
501+ style = { [ styles . scroll , scrollStyle ] }
501502 renderItem = { this . renderItem }
502503 keyExtractor = { this . keyExtractor }
503504 scrollEnabled = { visibleItemCount <= itemCount }
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ type AutocompleteProps = {
3030 overlayStyle ?: StyleProp < TextStyle > ;
3131 pickerStyle ?: StyleProp < TextStyle > ;
3232 containerStyle ?: StyleProp < ViewStyle > ;
33+ scrollStyle ?: StyleProp < ViewStyle > ;
3334
3435 scrollToInput : ( ev : any ) => void ,
3536 handleSelectItem : ( item : any , index : number ) => void ,
You can’t perform that action at this time.
0 commit comments