Secure text entry flickers on iOS
未关闭
还没有人认领这个 Issue。
Issue: Author Provided Repro
Platform: iOS
- 主要语言
- C++
- 星标
- 127k
- 派生
- 25.3k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 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
- Install the application with
yarn ios - Focus on the text input
- 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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从链接的 secure-text-entry-flicker 复现用例开始,并在 iOS 模拟器或设备上使用 yarn ios 运行它。验证 secureTextEntry 使用自定义字体且输入一个字符后再将其删除时的闪烁现象,并比较新旧渲染器;完成标准是两种情况下文本都不再闪烁。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- ios, react-native
- 领域
- mobile
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100