callstack / callstack/react-native-paper
Card Components require "children" prop despite child views
- Dominant language
- TypeScript
- Stars
- 14.5k
- Forks
- 2.2k
- Avg merge
- 5d 23h
- Merged PRs (30d)
- 12
Description
### 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
Contributor guide
Research direction
The issue identifies React Native Paper's Card components and version 5.13.3; reproduce the problem in a project with nested Card child views, then trace the TypeScript prop definitions for Card, Card.Title, and Card.Content. Done means those components no longer require an explicit children prop when child views are present, with the reported behavior verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100