callstack / callstack/react-native-paper

TextInput in react-native-paper can't move cursor point once it is focused

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

説明

### Current behaviour
Now I am Trying to build react native mobile app using react native version 0.72.4
{
dispatch(actions.setUserLoginEmail(text));
setShowError(false);
if (text === "") {
setShowError(false);
} else {
debouncedCheckEmailValidity(text);
}
}}
error={showError && !validateEmailForTextInput(email)}
outlineStyle={{
borderRadius: 10,
backgroundColor: "#F5F8F6",
}}
activeOutlineColor="#000000"
theme={{
colors: {
background: '#FFFFFF',
primary: '#000000',
text: '#000000',
},
}}
/>
When I try this code and try to focus nth letter place then it is not working.

![Image](https://github.com/user-attachments/assets/00b55cc9-e263-4e07-b38f-16d4eb5895ae)

For example I can't set cursor position next to "i" which is 3rd place in that "twinklex" string.
If keyboard is hiden then can click anywhere but once keyboard is shown again then can't again too.
This happens only on android

### Your Environment

| software | version
| --------------------- | -------
| ios | 18
| android | 34
| react-native | 0.72.4
| react-native-paper | 5.13.1
| node | v20.9.0
| npm or yarn | 10.1.0

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

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

調査の方向性

まず、Android 34 上で react-native 0.72.4 と react-native-paper 5.13.1 を使用して、提供された TextInput の例を再現します。キーボードが表示されている間のカーソル位置を調査し、次にテキスト内をタップしたときに、報告されている入力動作に影響を与えずにカーソルが正しく配置されることを確認します。

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

評価

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

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

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