callstack / callstack/react-native-paper
Checkbox.Item: Make the underlying TouchableRipple more configurable
- 主要语言
- TypeScript
- 星标
- 14.5k
- 派生
- 2.2k
- 平均合并
- 5 天 23 小时
- 30 天内合并 PR
- 12
描述
**Is your feature request related to a problem? Please describe.**
I've applied border radius to Checkbox.Item, and it seems to work as expected. However, when the item is `pressedIn`, the underlying touchable ripple doesn't respect the item's border radius.
**Describe the solution you'd like**
Expose an API to tweak the TouchableRipple through rippleStyle or containerStyle.
**Describe alternatives you've considered**
I've considered not using the Checkbox.Item and manually implementing the component with desired level of configuration. But it's a much bigger lift.
**Additional context**
贡献指南
调研方向
从 Checkbox.Item 开始,检查它如何创建和配置底层的 TouchableRipple。定义所请求的 rippleStyle 或 containerStyle API,使项目的 border radius 在按下时得到遵循,然后在可用的情况下,使用相关的组件测试或示例验证行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react-native, typescript
- 领域
- frontend, mobile
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100