[iOS] Multiline TextInput loses its custom font face for text typed after an autocorrect
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 52/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- ios, react-native
- Lĩnh vực
- mobile-dev
Hướng nghiên cứu
Start by running the linked reproducer on the reported iOS simulator and inspect React Native's multiline TextInput path alongside the native UITextView behavior. Compare the custom-font case with autocorrect enabled against the system-font and autocorrect-disabled cases, including onLayout and onContentSizeChange. Done when text typed after autocorrect keeps the custom bold face and the field height includes the last line.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
On iOS, a multiline TextInput whose fontFamily is a bundled custom face (PlusJakartaSans-Bold, shipped with PlusJakartaSans-Regular) draws the words typed after an autocorrect in the family's regular face. The text before the correction and the corrected word stay bold. Every word typed after it is regular.
Expected: all of the text stays in PlusJakartaSans-Bold.
The same autocorrect also breaks the field's height. In our app the field also sets letterSpacing: 0 and runs React Native 0.86.3. The visible text stays bold, but the field is laid out one line short of what the UITextView draws, so the last line is hidden below the field: onLayout reports 114 while onContentSizeChange reports 152. Setting autoCorrect={false} avoids both, and so does typing without triggering an autocorrect. With the system font and fontWeight: '700' the text stays bold.
Steps to reproduce
- Clone the reproducer, then run
cd ReproducerApp && yarn && cd ios && bundle install && bundle exec pod install && cd .. && yarn ios(iPhone 17 Pro simulator, iOS 26.5, hardware keyboard). - Tap the field and type, without pausing:
Anyone up for pickup basketball at the park this saturday morning - iOS autocorrects "saturday" to "Saturday" when the space after it is typed.
- "morning" is drawn in
PlusJakartaSans-Regular.
React Native Version
0.88.0
Affected Platforms
Runtime - iOS
Output of npx @react-native-community/cli info
System:
OS: macOS 26.6.2
CPU: (10) arm64 Apple M4
Memory: 270.50 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.23.2
path: ~/.pixi/envs/default/bin/node
Yarn: Not Found
npm:
version: 10.9.8
path: ~/.pixi/envs/default/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.17.0
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 25.5
- iOS 26.5
- macOS 26.5
- tvOS 26.5
- visionOS 26.5
- watchOS 26.5
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 26.6/17F113
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.18
path: /usr/bin/javac
Ruby:
version: 4.0.6
path: /opt/homebrew/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.2.0
wanted: 20.2.0
react:
installed: 19.3.0
wanted: 19.3.0
react-native:
installed: 0.88.0
wanted: 0.88.0
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Stacktrace or Logs
No crash or error is logged.
MANDATORY Reproducer
https://github.com/peytonshields/rn-textinput-autocorrect-font
Screenshots and Videos
After typing the steps above, "morning" is in the regular face:

Recording: https://github.com/peytonshields/rn-textinput-autocorrect-font/blob/main/media/repro.mp4
- Ngôn ngữ chính
- C++
- Star
- 127k
- Fork
- 25.5k
- Merge trung bình
- 3 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 188
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của react/react-native
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
react/react-native#59945 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
react/react-native#59944 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
react/react-native#59942 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
react/react-native#59939 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
react/react-native#59929 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của react/react-native
Issue tương tự
-
test(tools): two testkit cache tests fail unless GOCACHE and GOMODCACHE are in the environmentĐang mởbacklog
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
EchoTools/nevr-runtime#2385 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
tensorflow/tflite-micro#3995 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CPU update 1.31xĐang mởspeed-report
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
mw00/project-maya#961 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
not for AI lovers
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
OSGeo/gdal#15515 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày