callstack / callstack/react-native-paper
SearchBar's clearIcon to have ability to always stay visible
- Dominant language
- TypeScript
- Stars
- 14.5k
- Forks
- 2.2k
- Avg merge
- 5d 23h
- Merged PRs (30d)
- 12
Description
**Is your feature request related to a problem? Please describe.**
The simple task of always showing the clearIcon even when no text is input.
**Describe the solution you'd like**
An "alwaysShowClearIcon" boolean prop on the SearchBar component.
**Describe alternatives you've considered**
Using the "right" prop and custom "icon" props.
Contributor guide
Research direction
Start at the SearchBar component and inspect how clearIcon visibility is determined when the input is empty. Add the requested alwaysShowClearIcon option and verify that the clear icon remains visible without text while preserving the existing behavior when the option is not used.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100