callstack / callstack/react-native-paper

Card Components require "children" prop despite child views

Open
#4,684 5 comments 0 reactions 0 assignees View on GitHub
bug Card
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

![Image](https://github.com/user-attachments/assets/a217d3a2-98b0-4463-b677-a2fdb373a5c8)

### 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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.