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

Trigger event after populating auto-complete-input #62

Closed
AishwaryaSurana opened this issue Sep 6, 2017 · 4 comments
Closed

Trigger event after populating auto-complete-input #62

AishwaryaSurana opened this issue Sep 6, 2017 · 4 comments
Labels

Comments

@AishwaryaSurana
Copy link

AishwaryaSurana commented Sep 6, 2017

Can I trigger an event (Eg: navigating to a new screen) after the suggestion is selected and auto complete text is populated by that suggestion?

Right now I have to explicitly add a view component to navigate. Like,
<Button title="Show Calendar" onPress={ () => this.gotopage() }/>

@cosydney
Copy link

@AishwaryaSurana did you find another solution ?

@cosydney
Copy link

I did actually:

<TouchableOpacity onPress={() => this._myrecord({query: label})}> <Text style={styles.itemText}> {label} </Text> </TouchableOpacity>

And then you can do whatever in your function:
_myrecord = (label) => { console.log(' --->', label.query) this.setState(label) }

@stale
Copy link

stale bot commented Apr 7, 2021

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label Apr 7, 2021
@stale
Copy link

stale bot commented Apr 14, 2021

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants