callstack / callstack/react-native-paper

TextInput expands parent container unexpectedly

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

描述

### Current behaviour
TextInput inside a flex container without width constraints, the input expands to full width, causing the parent container to stretch. Expected behavior is that it should respect the parent’s intrinsic size unless explicitly styled.

### Expected behaviour
Expand the parent container

贡献指南

打开贡献指南

调研方向

未指定源文件或测试。首先在不受约束的 flex 容器中复现 TextInput,并比较当前的尺寸计算与预期的尺寸计算;在定位组件实现并为已达成共识的内在尺寸行为添加回归测试之前,先澄清关于预期行为的矛盾文本。

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

评估

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

把新 issue 发到你的邮箱

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