callstack / callstack/react-native-paper

SearchBar's clearIcon to have ability to always stay visible

Open
#4,424 0 comments 0 reactions 0 assignees View on GitHub
feature request
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.