Skip to content

Commit ca09c30

Browse files
committed
run linter
1 parent cc2e67b commit ca09c30

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

GooglePlacesAutocomplete.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,10 @@ interface GooglePlacesAutocompleteProps {
412412
renderHeaderComponent?: () => JSX.Element | React.ComponentType<{}>;
413413
renderLeftButton?: () => JSX.Element | React.ComponentType<{}>;
414414
renderRightButton?: () => JSX.Element | React.ComponentType<{}>;
415-
renderRow?: (data: GooglePlaceData, index: number) => JSX.Element | React.ComponentType<{}>;
415+
renderRow?: (
416+
data: GooglePlaceData,
417+
index: number,
418+
) => JSX.Element | React.ComponentType<{}>;
416419
// sets the request URL to something other than the google api. Helpful if you want web support or to use your own api.
417420
requestUrl?: RequestUrl;
418421
styles?: Partial<Styles> | Object;

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ _This list is a work in progress. PRs welcome!_
249249
| renderHeaderComponent | function | use the `ListHeaderComponent` from `FlatList` when showing autocomplete results | | |
250250
| renderLeftButton | function | add a component to the left side of the Text Input | | |
251251
| renderRightButton | function | add a component to the right side of the Text Input | | |
252-
| 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 | | |
252+
| 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 | | |
253253
| requestUrl | object | used to set the request url for the library | | |
254254
| returnKeyType | string | the return key text https://reactnative.dev/docs/textinput#returnkeytype | 'search' | |
255255
| styles | object | See styles section below | | |

0 commit comments

Comments
 (0)