File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -159,14 +159,14 @@ Change valueExtractor and pass the data to Autocomplete without fetchDataUrl
159159 containerStyle | Styles for dropdown container view | Object | -
160160 scrollStyle | Styles for dropdown flatlist | Object | -
161161 scrollToInput | Focus on selected field | Function | -
162- handleSelectItem | Selection callback (agrs : item, index) | Function | -
162+ handleSelectItem | Selection callback (args : item, index) | Function | -
163163 onDropdownShow | Show keyboard | Function | -
164164 onDropdownClose | Hide keyboard | Function | -
165165 onChangeText | Autocomplete input text changes | Function | -
166166 renderIcon | Render icon near input | Function | -
167167 valueExtractor | Extract value from item (args: item, index) | Function | ({ value }) => value
168168 rightTextExtractor | Extract value from item (args: item, index) | Function | ({ value }) => value
169- fetchData | Fetch data for autocomplete | Function | (searchInput) => Promise
169+ fetchData | Fetch data for autocomplete | Function | -
170170
171171### Authors:
172172
Original file line number Diff line number Diff line change @@ -117,14 +117,14 @@ class Autocomplete extends Component {
117117 }
118118
119119 setItem ( value ) {
120- const { index, handleSelectItem, valueExtractor, resetOnSelect } = this . props ;
120+ const { index, handleSelectItem, valueExtractor, resetOnSelect} = this . props ;
121121 handleSelectItem ( value , index ) ;
122-
122+
123123 if ( resetOnSelect ) {
124- this . setState ( { inputValue : '' } ) ;
124+ this . setState ( { inputValue : "" } ) ;
125125 } else {
126- const capitalizedValue = capitalizeFirstLetter ( valueExtractor ( value ) ) ;
127- this . setState ( { inputValue : capitalizedValue } ) ;
126+ const capitalizedValue = capitalizeFirstLetter ( valueExtractor ( value ) ) ;
127+ this . setState ( { inputValue : capitalizedValue } ) ;
128128 }
129129 }
130130
You can’t perform that action at this time.
0 commit comments