callstack / callstack/react-native-paper
ToggleButton.Row should be generic like ToggleButton.Group
未关闭
feature request
ToggleButton
- 主要语言
- TypeScript
- 星标
- 14.5k
- 派生
- 2.2k
- 平均合并
- 5 天 23 小时
- 30 天内合并 PR
- 12
描述
**Is your feature request related to a problem? Please describe.**
ToggleButton.Group is generic.
ToggleButton.Row has string value.
Why is such difference?
**Describe the solution you'd like**
Make both generic.
**Describe alternatives you've considered**
View with flex dir = row inside ToggleButton.Group
**Additional context**
贡献指南
调研方向
找到 ToggleButton.Group 和 ToggleButton.Row 的实现,并比较它们的 TypeScript 值定义。确认每个组件的使用方式,然后统一它们的值类型,使 Row 像 Group 一样支持泛型值;完成的标准是两个组件对非字符串值都能通过类型检查。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react-native, typescript
- 领域
- frontend, mobile
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100