react / react/react-native

Secure text entry flickers on iOS

オープン
#45,347 コメント 8 件 リアクション 4 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Issue: Author Provided Repro Platform: iOS
主要言語
C++
スター
127k
フォーク
25.3k
平均マージ
1日 23時間
マージ済み PR(30日)
4

説明

Description

On iOS (With a Simulator or a real device), if you have a TextInput component with secureTextEntry={true} and a custom font, the text flickers when you enter a character and remove it.

Note: this also happens with the old renderer.

Steps to reproduce
  1. Install the application with yarn ios
  2. Focus on the text input
  3. Enter a character and then remove it
React Native Version

0.74.3

Affected Platforms

Runtime - iOS

Areas

Fabric - The New Renderer

Output of npx react-native info
System:
  OS: macOS 14.3
  CPU: (10) arm64 Apple M1 Pro
  Memory: 98.19 MB / 16.00 GB
  Shell:
    version: 0.91.0
    path: /Users/burakguner/.cargo/bin/nu
Binaries:
  Node:
    version: 21.7.1
    path: ~/.nix-profile/bin/node
  Yarn:
    version: 4.3.1
    path: ~/.nix-profile/bin/yarn
  npm:
    version: 10.5.0
    path: ~/.nix-profile/bin/npm
  Watchman:
    version: 2024.01.22.00
    path: /Users/burakguner/.nix-profile/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /Users/burakguner/.local/share/gem/ruby/3.1.0/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.0
      - iOS 17.0
      - macOS 14.0
      - tvOS 17.0
      - watchOS 10.0
  Android SDK: Not Found
IDEs:
  Android Studio: Hedgehog 2023.1.1 Patch 2 Hedgehog 2023.1.1 Patch 2
  Xcode:
    version: 15.0.1/15A507
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.8
    path: /usr/bin/javac
  Ruby:
    version: 3.1.4
    path: /Users/burakguner/.nix-profile/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.74.3
    wanted: 0.74.3
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: true


### Stacktrace or Logs

```text
There is no stack trace.
Reproducer

https://github.com/atlj/secure-text-entry-flicker

Screenshots and Videos

https://github.com/facebook/react-native/assets/23079646/7a260380-eb2c-434c-97f3-af14dd51a5af

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

リンクされている secure-text-entry-flicker の再現手順から始め、iOS シミュレータまたはデバイス上で yarn ios を実行します。secureTextEntry がカスタムフォントを使用し、文字を入力してから削除したときのちらつきを、新旧の renderer で比較して確認します。両方の場合でテキストがちらつかなくなれば完了です。

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

評価

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

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

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