callstack / callstack/react-native-paper

TextInput outlined strange behavior on tablet

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

説明

### Current behaviour

As you can see from the image, when using it on a tablet, that line above appears under the label.

### Expected behaviour

![image](https://user-images.githubusercontent.com/20476002/230873510-49afa90a-2599-43e7-a9e5-fe1570ab1afc.png)

### How to reproduce?

```js
{
setValue('');
if (text === '' || isNaN(text)) return;
addNumber(text);
}}
theme={{
colors: {
placeholder: isDark ? '#FFFFFF' : '#000',
text: '#1E90FF',
primary: '#1E90FF',
background: isDark ? '#1B1A23' : "#EFEFEF"
},
}}
style={[
{
width: 60,
},
]}
/>
```

### Preview

Tablet:
![image](https://user-images.githubusercontent.com/20476002/230873480-ed8f449a-f77c-41ed-bc29-d85bab71243c.png)

Smartphone:
![image](https://user-images.githubusercontent.com/20476002/230873510-49afa90a-2599-43e7-a9e5-fe1570ab1afc.png)

### Your Environment

| software | version
| --------------------- | -------
| android | 8.1.0
| react-native | 0.71.4
| react-native-paper | 5.6.0
| node | 16.14.2
| npm | 9.6.2

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

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

調査の方向性

まず、提供されたoutlinedモードのTextInputの例をタブレット上で再現し、そのレンダリングをスマートフォンのスクリーンショットと比較します。その使用箇所からTextInputのoutlinedモードを追跡し、なぜラベルの下に線が表示されるのかを特定します。タブレット上のレンダリングが期待されるoutlinedの外観と一致すれば、作業は完了です。

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

評価

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

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

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