Skip to content

searchBar event onReturn #13617

Answered by m1ga
beppo-ivel asked this question in Q&A
Oct 22, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

I looks like it is not possible because of native restictions: https://stackoverflow.com/a/31573689/5193915

The queryTextListener wont fire on an empty string event

They do the same as I would do in Titanium since you want to do some more styling: use a own textfield. Create something like this:

<View>
  <TextField/>
  <ImageView id="search_icon"/>
  <ImageView id="dismiss_icon"/>
</View>

and attach your events.

100% freedom for your look & feel.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@beppo-ivel
Comment options

@m1ga
Comment options

m1ga Oct 23, 2022
Collaborator

Answer selected by beppo-ivel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants