Skip to content

Commit

Permalink
run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
bell-steven committed Jan 25, 2021
1 parent cc2e67b commit ca09c30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion GooglePlacesAutocomplete.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,10 @@ interface GooglePlacesAutocompleteProps {
renderHeaderComponent?: () => JSX.Element | React.ComponentType<{}>;
renderLeftButton?: () => JSX.Element | React.ComponentType<{}>;
renderRightButton?: () => JSX.Element | React.ComponentType<{}>;
renderRow?: (data: GooglePlaceData, index: number) => JSX.Element | React.ComponentType<{}>;
renderRow?: (
data: GooglePlaceData,
index: number,
) => JSX.Element | React.ComponentType<{}>;
// sets the request URL to something other than the google api. Helpful if you want web support or to use your own api.
requestUrl?: RequestUrl;
styles?: Partial<Styles> | Object;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ _This list is a work in progress. PRs welcome!_
| renderHeaderComponent | function | use the `ListHeaderComponent` from `FlatList` when showing autocomplete results | | |
| renderLeftButton | function | add a component to the left side of the Text Input | | |
| renderRightButton | function | add a component to the right side of the Text Input | | |
| renderRow | function | custom component to render each result row (use this to show an icon beside each result). *data* and *index* will be passed as input parameters | | |
| renderRow | function | custom component to render each result row (use this to show an icon beside each result). `data` and `index` will be passed as input parameters | | |
| requestUrl | object | used to set the request url for the library | | |
| returnKeyType | string | the return key text https://reactnative.dev/docs/textinput#returnkeytype | 'search' | |
| styles | object | See styles section below | | |
Expand Down

0 comments on commit ca09c30

Please sign in to comment.