❓Close button call back in Search Bar
See original GitHub issueHey, 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:
- Created 3 years ago
- Reactions:2
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I really want this feature too. Why did @github-actions close feature request?
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.