Emoji renders as [?] boxes on iOS 26 simulator (Xcode 26)
还没有人认领这个 Issue。
- 主要语言
- C++
- 星标
- 127k
- 派生
- 25.3k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 4
描述
Description
Emoji characters render as [?] placeholder boxes in React Native <Text> components on the iOS 26 simulator (Xcode 26.3, build 17C529). This affects all emoji — inline, standalone, flag sequences, and Unicode escape sequences.
Safari running in the same simulator renders emoji correctly, confirming the font (AppleColorEmoji) is present and registered. The issue is specific to React Native's CoreText text rendering path.
Steps to reproduce
- Create a new React Native project (tested with RN 0.84.1 via
@react-native-community/cli) - Add emoji to a
<Text>component:<Text>Hello 🚀 World 🎨 Test ✅</Text> <Text>Pure emoji: 😀😃😄😁😆😅🤣😂</Text> <Text>Flags: 🇺🇸 🇨🇳 🇯🇵 🇬🇧</Text> - Run on iOS 26 simulator (any device — iPhone 16, iPhone 17 Pro, etc.)
- All emoji appear as
[?]boxes
Expected behavior
Emoji should render using the AppleColorEmoji font, as they do in Safari and native UIKit apps on the same simulator.
Actual behavior
All emoji render as [?] replacement characters/boxes.
Environment
- React Native: 0.84.1 (also reproduced on 0.83.2)
- JS Engine: Hermes (also tested with JSC — same result)
- Architecture: New Architecture / Fabric (also tested with Old Architecture — same result)
- Xcode: 26.3 (build 17C529)
- iOS Simulator: 26.3.1 (23D8133)
- macOS: Darwin 25.3.0 (arm64)
Investigation done
- ✅ Confirmed
AppleColorEmoji-160px.ttcexists in the simulator runtime atCoreAddition/AppleColorEmoji-160px.ttc - ✅ Confirmed font is registered (
CTFontManagerRegisterFontsForURLreturns "already exists") - ✅ Confirmed Safari in the same simulator renders emoji correctly
- ✅ Tested Hermes vs JSC — no difference
- ✅ Tested New Architecture vs Old Architecture — no difference
- ✅ Tested RN 0.83.2 and 0.84.1 — both affected
- ✅ Attempted
RCTSetDefaultFontHandlerwith AppleColorEmoji in cascade list — no effect - ❌ Unable to test on iOS 18 simulator (Xcode 26 only ships iOS 26 runtime)
Notes
- This may be an iOS 26 simulator-specific issue (real devices may be unaffected)
- The root cause appears to be in how React Native's native text rendering (via CoreText/TextKit) resolves the emoji font cascade on iOS 26
- No older iOS simulator runtimes are available through Xcode 26 to compare
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
在 iOS 26 模拟器上使用 组件复现 React Native 0.84.1 中的问题,然后调查原生 CoreText/TextKit 渲染路径和 emoji 字体级联。在同一模拟器上将行为与 Safari 或 UIKit 进行比较;当行内 emoji、独立 emoji、旗帜和 Unicode 转义能够正常渲染而不是显示替换框时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- ios, react-native
- 领域
- mobile
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100