callstack / callstack/react-native-paper
Add onPressIn, onPressOut props to Button
- 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.**
It'd be very helpful to add `onPressIn` and `onPressOut` props to the `Button` component.
**Describe the solution you'd like**
Add additional props `onPressIn` and `onPressOut` to pass to the `Button` component.
**Describe alternatives you've considered**
Manually wrapping it with `Pressable`
**Additional context**
I already saw someone requested this feature before.
Contributor guide
Research direction
Start by locating the TypeScript Button component and its existing press-related props, then inspect the associated tests. The work is done when Button accepts onPressIn and onPressOut as props, passes them through as requested, and the relevant tests cover their behavior.
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
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100