callstack / callstack/react-native-paper
Text input number of lines and multiline not working in iOS.
- 主要语言
- TypeScript
- 星标
- 14.5k
- 派生
- 2.2k
- 平均合并
- 5 天 23 小时
- 30 天内合并 PR
- 12
描述
### Current behaviour
I set the number of lines to be 1 and multiline to false. But the text value was still displaying in 2 lines. It's overflowing.
### Expected behaviour
The text value should display in fixed one line. (like in Android)
### How to reproduce?
` setText(text)}
mode="outlined"
numberOfLines={1}
multiline={false}
/>`
### Preview
iOS:
Android: working fine, showing 1 line.
### What have you tried so far?
Originally, I have a custom TextInput that I'm using where I saw the issue. To rule out the cause, I used the standard TextInput from react native paper and I figured out that they have the same issue.
### Your Environment
| software | version
| --------------------- | -------
| react-native | 0.79.4
| react-native-paper | 5.14.5
| expo sdk | 53.0.15
贡献指南
调研方向
先使用 numberOfLines={1} 和 multiline={false} 从提供的 TextInput 复现开始,然后比较所列 React Native Paper 和 Expo 版本中的 iOS 与 Android 行为。当 iOS 输入框在不溢出的情况下将文本保持在一行,同时保留 Android 行为时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react-native, typescript
- 领域
- mobile
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100