Having loading on Searchbar and TextInput Components
See original GitHub issueDescribe the feature
I am using Searchbar
as follow:
<Searchbar
placeholder={`${t('homeView.search')}...`}
value={cityOrPostalCode}
onChangeText={this.onChangeText}
loading={1}
onSubmitEditing={this.submit}
/>
Motivation
So far, there is no way to switch the left icon, the right icon, or to add a component within the text to display an asynchronous task.
A use case would be a <Searchbar />
used for autocomplete, it will fetch some data.
So far I must create my own indicator, which most likely does not respect material ui guidelines
Thanks again for your time,
Dimitri
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:12 (2 by maintainers)
Top Results From Across the Web
A search bar appears, but I CANNOT input text - Stack Overflow
I think the problem is , value={search}. this should be, value={this.state.search}. Or you should take state in a variable,
Read more >Create a React Native search bar from scratch - LogRocket Blog
Learn how to create your own React Native search bar from scratch in this detailed, step-by-step tutorial.
Read more >Searchbar · React Native Paper
Searchbar is a simple input box where users can type search queries. ... Set style of the TextInput component inside the searchbar.
Read more >Search Bar in React JS! - DEV Community
Creating the Search Bar ... Firstly, we will create the search bar which will be a basic text field. I will use Material...
Read more >Create a Search Bar With React and Debounce Input - YouTube
Search is an important part of almost every application. But how can we make our search feel buttery smooth? In this video, we...
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
This features would be so much appreciated, yes that would be awesome.
I am just thinking, would it be nice to toggle the clear icon with a loading icon while searching something asynchronously (which is almost always the case)? I have another proposal in mind:
icon
for previous versions with a deprecation warningleftIcon
that will serve the purpose oficon
clearIcon
for clearing the search barrightIcon
(for example for adding a spinner) displayed on the left ofclearIcon
in the<Searchbar />
Allow user to rearrange any of those 3 icons on it’s will
It’s still open