callstack / callstack/react-native-paper
Add onPressIn, onPressOut props to Button
未关闭
适合新手
feature request
- 主要语言
- TypeScript
- 星标
- 14.5k
- 派生
- 2.2k
- 平均合并
- 5 天 23 小时
- 30 天内合并 PR
- 12
描述
**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.
贡献指南
调研方向
首先定位 TypeScript Button 组件及其现有的 press 相关 props,然后检查关联的测试。当 Button 接受 onPressIn 和 onPressOut 作为 props,按要求将它们传递下去,并且相关测试覆盖它们的行为时,工作即完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react-native, typescript
- 领域
- mobile
- Issue 类型
- 功能
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 72/100