question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

❓Close button call back in Search Bar

See original GitHub issue

Hey, team, I want to ask is there any prop available just like as onIconPress for the close button in the search bar? I am calling an API when a user enters text in the search bar and taps on the search button, though it is working fine and I am showing a loader till data loads but I want to stop that loading when if the user presses the close button.

This is my code for SearchBar

<Searchbar
          placeholder="Search by hashtag #"
          iconColor={PrimaryColor}
          autoCapitalize="none"
          autoFocus={true}
          onIconPress={() => onEndSearchQueryHandler()}
          onEndEditing={() => onEndSearchQueryHandler()}
          value={search}
          
          onChangeText={text => onChangeSearchQueryHandler(text)}
        />

Is there any prop available which I can use here when closed button is tapped by the user?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

2reactions
gluonscommented, Jun 29, 2021

I really want this feature too. Why did @github-actions close feature request?

1reaction
github-actions[bot]commented, Oct 14, 2020

Hello 👋, this issue has been open for more than 2 months with no activity on it. If the issue is still present in the latest version, please leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution on workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

UISearchBar x button pressed - ios - Stack Overflow
I don't think there's an easy way to hook into the X button. However, you can hook into its direct consequence: cleared text....
Read more >
Actions - Storybook - JS.ORG
The actions addon is used to display data received by event handler (callback) arguments in your stories. Action args. Actions work via supplying...
Read more >
Press Back Again to Exit - Android Studio Tutorial - YouTube
In this tutorial we will learn, how to implement the "Press back again to exit " functionality, which only leaves the app, if...
Read more >
How to Fix App Not Close When Press Back Button in Android
Some app will not close properly when you press back button in android devices, it will run in background and slow down your...
Read more >
How to create contact group from category in Outlook?
Step 2: Activate the Search Tools in Ribbon with putting cursor ... you get back to the Contact Group window, click the Save...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found