Skip to content
New issue

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

Added ref method setAddressTextAndQuery(address) to set address text AND query the input AUTOMATICALLY (with results list displayed upon text change) #831

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HomemadeToast57
Copy link

This change introduces a new method setAddressTextAndQuery(address) that can be used by refs 🎉🎊🙌 ! It changes the address text to the provided address and then queries the input automatically. Using _handleChangeText(address) and setListViewDisplayed(true), it also shows the list of results (NOTE: This is not currently possible with setAddressText(address) alone...). This gives more flexibility to developers who would like to programmatically set the address text AND then query the input AND display the results lists directly from their refs.

Note: This change does not affect pre-existing functionality. It only adds further functionality through a single simple function. Therefore, there are no conflicts created.

This new method has one address parameter. It changes the address text to the provided address and then queries the input. Using _handleChangeText(address) and setListViewDisplayed(true), it also shows the list of results automatically. This gives more flexibility to developers who would like to autofill and query input programmatically.
@HomemadeToast57 HomemadeToast57 changed the title 💡 Added ref method setAddressTextAndQuery(address) to set address text AND query the input AUTOMATICALLY (with results list displayed upon text change) 💡 Added ref method setAddressTextAndQuery(address) to set address text AND query the input AUTOMATICALLY (with results list displayed upon text change) Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants