https://github.com/FaridSafi/react-nati ... tocomplete

Мой код, как показано ниже
Код: Выделить всё
props.onPress(data, details)}
onFail={(error) => console.error('error-->', error)}
ref={ref}
query={{
key: '*****',
language: 'en',
region: 'ae',
components: 'country:ae',
types: 'geocode', // default: 'geocode'
}}
numberOfLines={1}
fetchDetails={true}
renderDescription={(row) => row.description}
renderRightButton={() => (
ref.current?.setAddressText('')}>
)}
nearbyPlacesAPI="GooglePlacesSearch" // Which API to use: GoogleReverseGeocoding or GooglePlacesSearch
styles={{
textInputContainer: {
// backgroundColor: 'red',
marginLeft: 20,
marginRight: 20,
flexDirection: 'row',
borderRadius: 30,
borderColor: colors.white,
borderWidth: 1,
backgroundColor: colors.white,
},
textInput: {
height: 40,
color: colors.black,
fontSize: globals.font_14,
marginTop: 5,
backgroundColor: 'white',
},
predefinedPlacesDescription: {
color: colors.red,
},
poweredContainer: {
marginRight: 20,
marginLeft: 20,
},
row: {
marginHorizontal: 20,
},
separator: {
backgroundColor: '#c1bfc5',
height: 0.7,
},
}}
/>
Подробнее здесь: https://stackoverflow.com/questions/692 ... con-remove