callstack / callstack/react-native-paper

Text Input label position

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

描述

### Is it possible to label change position of text input label?

I am trying to set spacing between my input fields. When I use the label, the default height increases automatically, and the gap between fields is also affected by it. As you can see, the email label increases the label height, which creates spacing inconsistencies between components. Is there a way to exclude the extra height of the label and also add a label prop to the input field?
![WhatsApp Image 2024-07-09 at 13 13 06](https://github.com/callstack/react-native-paper/assets/92088301/371f777d-b72c-489f-877b-f32ba2e11131)

贡献指南

打开贡献指南

调研方向

首先复现 issue 中描述的 Text Input 标签和间距行为,包括电子邮件标签示例。检查 Text Input 的入口点以及与标签相关的文档或测试,然后定义所需的标签位置和一致的字段高度,再实现并验证更改。

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

评估

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

把新 issue 发到你的邮箱

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