callstack / callstack/react-native-paper

Add SVG support for Card Cover

Abierto
#4,318 0 comentarios 2 reacciones 0 asignados Ver en GitHub
feature request
Lenguaje dominante
TypeScript
Estrellas
14.5k
Forks
2.2k
Merge medio
5 d 23 h
PR fusionados (30 d)
12

Descripción

**Is your feature request related to a problem? Please describe.**
We can not add an SVG as Card Cover: https://callstack.github.io/react-native-paper/docs/components/Card/CardCover.

Event with this library it does not works: https://www.npmjs.com/package/react-native-svg
It gives this error: `TypeError: cyclical structure in JSON object`

**Describe the solution you'd like**
It will be great to support with a props names SVG like:

` }} />`

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start with the Card.Cover component and its documented source API, then compare the reported behavior with react-native-svg and the linked SVG example. Confirm how the existing source value is handled before deciding how SVG content should be accepted. Done means an SVG cover renders without the cyclical-structure error while existing Card Cover usage continues to work.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
react-native, typescript
Área
mobile
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.