You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| apiKey | string | Yes | - | Your Google Places API key |
191
-
|**Input Configuration**|
192
-
| value | string | No | '' | Initial input value |
193
-
| placeHolderText | string | No | - | Placeholder text for input |
194
-
| minCharsToFetch | number | No | 1 | Minimum characters before fetching |
195
-
| debounceDelay | number | No | 200 | Delay before triggering search |
196
-
|**Places API Configuration**|
197
-
| proxyUrl | string | No | - | Custom proxy URL for Places API requests |
191
+
| value | string | No | - | Controlled input value |
192
+
| placeHolderText | string | No | - | Placeholder text for the input |
193
+
| onPlaceSelect | (place: Place, sessionToken?: string) => void | Yes | - | Callback when a place is selected |
194
+
| onTextChange | (text: string) => void | No | - | Callback when input text changes |
195
+
|**Search Configuration**|
196
+
| proxyUrl | string | No | - | Custom proxy URL for API requests (Required for Expo web) |
198
197
| languageCode | string | No | - | Language code (e.g., 'en', 'fr') |
199
198
| includedRegionCodes | string[]| No | - | Array of region codes to filter results |
200
199
| types | string[]| No |[]| Array of place types to filter |
201
200
| biasPrefixText | (text: string) => string | No | - | Optional function to modify the input text before sending to the Places API |
201
+
| minCharsToFetch | number | No | 1 | Minimum characters before triggering search |
202
+
| debounceDelay | number | No | 200 | Delay in milliseconds before triggering search |
202
203
|**Place Details Configuration**|
203
204
| fetchDetails | boolean | No | false | Automatically fetch place details when a place is selected |
204
205
| detailsProxyUrl | string | No | null | Custom proxy URL for place details requests (Required on Expo web)|
205
206
| detailsFields | string[]| No |['displayName', 'formattedAddress', 'location', 'id']| Array of fields to include in the place details response. see [Valid Fields](https://developers.google.com/maps/documentation/places/web-service/place-details#fieldmask)|
0 commit comments