-2

how to show only specific city or any selected city addresses in GooglePlacesAutocomplete drop down list in React Native?

  1. I want if user selects any specific city then only show selected city addresses in drop down list.
<GooglePlacesAutocomplete
                            placeholder={placeholder}
                            minLength={2}
                            autoFocus={false}
                            returnKeyType={'default'}
                            fetchDetails={true}
                            enablePoweredByContainer={false}
                            textInputProps={{
                                placeholderTextColor: '#636160',
                            }}
                            onPress={handleLocationSelect}
                            query={{
                                key: 'GoogleApi',
                                language: 'en',
                                components: Country,
                                type:City,

                            }}
                            nearbyPlacesAPI="GooglePlacesSearch"
                            debounce={400}
                            styles={{
                                container: {
                                    flex: 0,
                                    width: windowWidth*1,
                                    paddingHorizontal:windowHeight*0.02,
                                    zIndex: 999,

                                },
                                textInput: {
                                    ...styles.input,
                                    color: 'black',
                                },
                                description: {
                                    color: '#c52026',

                                },
                                listView: {
                                    position: 'absolute',
                                    top: windowHeight * 0.045,
                                    backgroundColor: 'white',
                                    width: windowWidth - (windowHeight * 0.04),
                                    marginHorizontal: windowHeight * 0.02,
                                },
                               
                            }}
                        />

0