callstack / callstack/react-native-paper
Card Components require "children" prop despite child views
- 主要语言
- TypeScript
- 星标
- 14.5k
- 派生
- 2.2k
- 平均合并
- 5 天 23 小时
- 30 天内合并 PR
- 12
描述
### Current behaviour
The card components (parent, title, content etc) demands explicit "children" prop even with child views.
### Expected behaviour
The card components should not require "children" prop when child views are present
### How to reproduce?
Create any Card components in a project.
### Preview

### Your Environment
| software | version
| --------------------- | -------
| ios | x
| android | x
| react-native | 0.78.2
| react-native-paper | 5.13.3
| node | x.x.x
| npm or yarn | x.x.x
| expo sdk | x.x.x
贡献指南
调研方向
该 issue 指出了 React Native Paper 的 Card 组件和版本 5.13.3;请在包含嵌套 Card 子视图的项目中复现该问题,然后追踪 Card、Card.Title 和 Card.Content 的 TypeScript prop 定义。当这些组件在存在子视图时不再要求显式的 children prop,并且报告的行为已得到验证时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react-native, typescript
- 领域
- mobile
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100