callstack / callstack/react-native-paper

Where is the onClearIconPress on Searchbar component?

Open
#4,208 6 comments 0 reactions 0 assignees View on GitHub
question Searchbar
Dominant language
TypeScript
Stars
14.5k
Forks
2.2k
Avg merge
5d 23h
Merged PRs (30d)
12

Description

### Ask your Question

image

image

Seems like this prop type is missing from Searchbar but the documentation says otherwise:

https://callstack.github.io/react-native-paper/docs/components/Searchbar

Btw I'm using React Native Paper v5 (docs are in the same version)

Contributor guide

Open the contributing guide

Research direction

Start by comparing the Searchbar component's TypeScript prop definitions with the React Native Paper v5 Searchbar documentation linked in the issue. Reproduce the reported type mismatch in a small usage example, then confirm that the documented onClearIconPress API and the component's types agree.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
frontend, mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.