callstack / callstack/react-native-paper

[5.14.5] TextInput with multiline inside Portal causes rapid flicker and infinite onChangeText calls [iOS]

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

説明

### Current behaviour
Typing in a `react-native-paper` `TextInput` with `multiline` **inside a `Portal`** causes rapid flicker and floods `onChangeText` (dozens of calls per second). Removing **either** `Portal` or `multiline` stops the issue.

### Expected behaviour
No flicker; `onChangeText` fires once per user input.

### How to reproduce?
1. Render a multiline `TextInput` inside a `Portal`.
2. Run iOS
3. Focus the field and type characters.

```tsx
import * as React from 'react';
import { Portal, TextInput } from 'react-native-paper';

export default function Repro() {
const [text, setText] = React.useState('');
return (

{
console.count('onChangeText'); // spams rapidly
setText(t);
}}
style={{ minHeight: 120 }}
/>

);
}
```

### What have you tried so far?
- Removing `multiline` → issue gone
- Removing `Portal` → issue gone

### Your Environment

| software | version |
|------------------------|----------|
| ios | x |
| android | x |
| react-native | **0.81.5** |
| react-native-paper | **5.14.5** |
| node | x.x.x |
| npm or yarn | x.x.x |
| expo sdk | N/A |

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

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

調査の方向性

Start by reproducing the issue on iOS with the provided Portal and multiline TextInput example, then inspect the Portal and TextInput entry points. Done means typing no longer causes flicker and onChangeText fires once per user input.

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

評価

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

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

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