callstack / callstack/react-native-paper

Multiline TextInput label is not visible in flat mode

オープン
#4,756 コメント 2 件 リアクション 3 件 担当者 0 名 GitHub で見る
bug
主要言語
TypeScript
スター
14.5k
フォーク
2.2k
平均マージ
5日 23時間
マージ済み PR(30日)
12

説明

## Bug Report Template

**Current Behaviour**
When focusing into a TextInput, in when `mode="flat"`, the label disappears. The label displays correctly when `multiline=false`, and this issue only occurs on iOS. This occured in the latest version (5.14.5), and also in 5.14.1.

Also, it seems like some letters like letter "i" in this "Uwagi" word is also cut by the same overlay.

**Expected Behaviour**
The label should be scaled down and visible as usual when the TextInput is focused, regardless of multiline setting or platform.

**How to Reproduce**

1. Use react-native-paper version 5.14.5.
2. Render a TextInput, with following settings on iOS.
- mode = "flat"
- mutliline = true
- label = "I am test field"
``
5. Focus the TextInput.
6. Observe that the label disappears.

_Screenshots:_

Screenshot 2024-08-21 at 14 10 38

Screenshot 2024-08-21 at 14 10 44

The "i" cut in "Uwagi" word,

![Image](https://github.com/user-attachments/assets/09a85913-0475-4256-84cf-455c1177380f)

**What Have You Tried So Far?**
I tried doing the same thing [as he did](https://github.com/callstack/react-native-paper/issues/4482), but it is not working.

### Your Environment

| software | version
| --------------------- | -------
| ios | 18.4
| android | x
| react-native | 0.79.2
| react-native-paper | 5.14.5
| node | 22
| npm or yarn | pnpm
| expo sdk | 53

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by reproducing the issue with the React Native Paper TextInput entry point using mode="flat" and multiline on iOS, then compare the focused label behavior with multiline=false. Add a regression test for the iOS multiline flat-mode case; done means the scaled label remains visible and letters are not clipped when focused.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
react-native
領域
mobile
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。