callstack / callstack/react-native-paper

Support Line Breaks in Tooltip Component Title

未关闭
#4,072 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
feature request Tooltip
主要语言
TypeScript
星标
14.5k
派生
2.2k
平均合并
5 天 23 小时
30 天内合并 PR
12

描述

Is your feature request related to a problem? Please describe.
Yes, currently the Tooltip component in react-native-paper does not support line breaks within its content. This limitation makes it challenging to present information that's inherently structured in multiple lines, such as addresses or lists, leading to decreased readability.

Describe the solution you'd like
I'd like the content of the Tooltip component to recognize and render newline characters (\n). Alternatively, the component could support styled content that can be formatted with line breaks.

Describe alternatives you've considered
A possible alternative might be to use a custom tooltip component or another library, but it would be more beneficial and coherent to have this feature natively in react-native-paper.

Additional context
Allowing line breaks in the Tooltip component would greatly enhance its versatility. As UI/UX design evolves, presenting content in a clear and readable format is essential, and this change would cater to a wider variety of use cases.

贡献指南

打开贡献指南

调研方向

首先定位 React Native Paper Tooltip 组件及其现有测试;该 issue 没有指定具体的文件或测试路径。检查 tooltip 内容的渲染方式,并为包含换行符的内容添加覆盖测试。完成标准是:多行 tooltip 内容能够以清晰易读的换行进行渲染,同时不破坏现有行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
react-native, typescript
领域
frontend, mobile
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。