callstack / callstack/react-native-paper
refactor(radio-button): modernize selection model and improve MD3 compliance
- 主要语言
- TypeScript
- 星标
- 14.5k
- 派生
- 2.2k
- 平均合并
- 5 天 23 小时
- 30 天内合并 PR
- 12
描述
Refactor RadioButton to improve Material Design 3 compliance, remove problematic children patterns, improve performance characteristics, and modernize the public API.
**Problems**
- Current API relies heavily on children composition in ways that are difficult to optimize
- Internal layout logic is tightly coupled to arbitrary child structures
- MD3 behaviors and visuals are not fully aligned with current Material guidelines
- Rendering performance can degrade in large lists or frequently updated screens
- Type safety and discoverability of the API can be improved
- The component has inconsistent behavior between platforms and edge cases
**Focus Areas**
- Improve RadioButton.Group architecture
- Improve accessibility semantics
- Improve spacing and density consistency
- Simplify internal selection propagation
**Proposed API Direction**
``
**Performance Opportunities**
- Reduce context-driven rerenders
- Improve group memoization
- Simplify animation paths
贡献指南
调研方向
首先追踪现有的 RadioButton 和 RadioButton.Group 实现,以及当前如何处理选择、无障碍、间距和动画。将其行为与提议的 value/onValueChange API 以及当前的 Material Design 3 指南进行比较。完成的标准是:具备文档化的设计和已实现的组架构,并在各个平台上保持语义、密度、选择传播和重新渲染行为的一致性。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react-native, typescript
- 领域
- frontend, mobile
- Issue 类型
- 重构
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 冷清
- 描述清晰度
- 需要澄清
- 新手友好度
- 30/100