-
-
Notifications
You must be signed in to change notification settings - Fork 882
Open
Labels
Description
Describe the bug
Error: Exception in HostFunction: Expected argument 7 of method "sendRequest" to be a number, but got undefined, js engine: hermes
Reproduction - (required - issue will be closed without this)
JSX React native 0.79.1
Please provide a FULLY REPRODUCIBLE example.
Click to expand!
<GooglePlacesAutocomplete
minLength={4}
debounce={400}
isNewPlacesAPI={true}
enableHighAccuracyLocation={true}
enablePoweredByContainer={false}
placeholder={placeholder || trans('location.map.search')}
predefinedPlaces={[]}
GooglePlacesDetailsQuery={{fields: ['formated_address', 'geometry']}}
onPress={handlePlaceSelect}
query={{
language,
components: language === 'es' ? 'country:mx' : 'country:us',
key: GMAPS_ANDROID,
}}
fetchDetails={true}
isRowScrollable={true}
styles={{
textInputContainer: {
...styles.textInputContainer,
...stylesRounded,
...themeStyle,
},
textInput: {
...styles.textInput,
...stylesRounded,
},
}}
renderRightButton={() => <Svg icon="search" w={24} />}
renderRow={renderSuggestion}
textInputProps={{
onFocus: () => console.log('focus'),
onBlur: () => console.log('blur'),
}}
/>
Additional context
-
Library Version: latest
-
React Native Version: 0.79.1
-
iOS
-
[ *] Android
-
Web
If you are using expo please indicate here:
- I am using expo
Add any other context about the problem here, screenshots etc
Cuando se integra el componente con la nuav api de places en el modulo no se setea correctamente el api key d eGoogle, es necesario pasarla en la prop requestUrl para que el error desaparezca
requestUrl={{
headers: {
'X-Goog-Api-Key': GMAPS_ANDROID,
}
}}
Reactions are currently unavailable