
<GooglePlacesAutocomplete
ref={inputRef}
placeholder={placeholder || i18n.placeholders.deliveryAddressPlaceholder}
fetchDetails={true}
enablePoweredByContainer={false}
onPress={onPressAddressRow}
GooglePlacesDetailsQuery={{
fields: ['address_components', 'formatted_address']
}}
query={{
key: MAPS_KEY,
language: 'xxx',
components: 'country:xxx',
types: ['address']
}}
listUnderlayColor={colors.white}
styles={{
textInputContainer: {
borderColor: colors.brownishGrey,
borderWidth: 0.4,
backgroundColor: colors.white,
borderRadius: 5,
paddingHorizontal: spacing.xxsmall,
height: 46,
fontSize: fontSize.regular,
marginBottom: spacing.small
},
textInput: {
fontSize: fontSize.regular
},
row: {
borderBottomColor: colors.white
},
predefinedPlacesDescription: {
color: colors.black
}
}}
renderRow={renderRow}
renderLeftButton={() => renderLeftInputIncon()}
/>
React Native Version: [e.g. 0.63.3]
[x] iOS
If you are using expo please indicate here:
Add any other context about the problem here, screenshots etc
In android 11 too
It is happening to me too. iPhone 12.
In android 8 and 9 too, is there any other way to modify the placeholder color?
@jretamalc you can update the placeholder color by passing in the option to textInputProps
e.g.
<GooglePlacesAutocomplete
textInputProps={{
placeholderTextColor: Colors.primary,
}}
// other props
/>
Check out the TextInput props section for reference to other props you can use. https://reactnative.dev/docs/textinput#props
Most helpful comment
@jretamalc you can update the placeholder color by passing in the option to
textInputPropse.g.
Check out the
TextInputprops section for reference to other props you can use. https://reactnative.dev/docs/textinput#props