We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import useGoogle from "react-google-autocomplete/lib/usePlacesAutocompleteService"; import Constants from '../../lib/Constants'; const GoogleAddress = (props) => { const [value, setValue] = useState(""); const {placesService, placePredictions, getPlacePredictions} = useGoogle({ apiKey: Constants.GOOGLE_ADDRESS_API_KEY, options: { componentRestrictions: { country: props.country }, }, });
When change the country in dropdown list is possible to get the addresses based on that particular country?
The text was updated successfully, but these errors were encountered:
@png-prakash You have two options:
const [autocompleteOptions, setAutocompleteOptions] = useState({ componentRestrictions: { country: "cl" }, types: ["address"], })
Sorry, something went wrong.
No branches or pull requests
When change the country in dropdown list is possible to get the addresses based on that particular country?
The text was updated successfully, but these errors were encountered: