callstack / callstack/react-native-paper
Add SVG support for Card Cover
未关闭
feature request
- 主要语言
- TypeScript
- 星标
- 14.5k
- 派生
- 2.2k
- 平均合并
- 5 天 23 小时
- 30 天内合并 PR
- 12
描述
**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:
` }} />`
贡献指南
调研方向
从 Card.Cover 组件及其文档中说明的 source API 开始,然后将报告的行为与 react-native-svg 以及链接的 SVG 示例进行比较。在决定应如何接受 SVG 内容之前,确认现有 source 值的处理方式。完成标准是 SVG 封面能够渲染且不再出现循环结构错误,同时现有的 Card Cover 用法继续正常工作。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react-native, typescript
- 领域
- mobile
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100