style transform on Text component inconsistently applied on iOS
オープン
まだ誰も着手していません。
Needs: Triage :mag:
Platform: iOS
Type: New Architecture
- 主要言語
- C++
- スター
- 127k
- フォーク
- 25.3k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 4
説明
Description
CSS transform styles applied directly to <Text> components do not work consistently on iOS. The same code works correctly on Android.
In the example snippet below:
- Android: ✅ Text is translated as expected
- iOS: ❌ Text is not translated
<Text style={{ transform: [{ translateY: 50 }] }}>Transformed text</Text>
Occasionally a fast refresh will correct it but that's not consistent either.
Workaround
Wrapping the <Text> in a <View> and applying the transform to the <View> works on both platforms:
<View style={{ transform: [{ translateY: 50 }] }}>
<Text>Transformed text</Text>
</View>
Steps to reproduce
- Run the provided Expo Snack on an iOS device/sim
https://snack.expo.dev/@jacob-venable-companycam/text-transform-repro - Notice that the 2nd piece of text does not have the expected transform applied
React Native Version
0.81.5
Affected Platforms
Runtime - iOS
Areas
Fabric - The New Renderer
Output of npx @react-native-community/cli info
System:
OS: macOS 26.2
CPU: (14) arm64 Apple M4 Pro
Memory: 501.72 MB / 48.00 GB
Binaries:
Node:
version: 20.19.5
path: /.nvm/versions/node/v20.19.5/bin/node
Yarn:
version: 1.22.22
path: /.nvm/versions/node/v20.19.5/bin/yarn
npm:
version: 10.8.2
path: /.nvm/versions/node/v20.19.5/bin/npm
Watchman:
version: 2025.03.10.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK:
Platforms:
- DriverKit 25.2
- iOS 26.2
- macOS 26.2
- tvOS 26.2
- visionOS 26.2
- watchOS 26.2
Android SDK: Not Found
IDEs:
Android Studio: 2025.1 AI-251.25410.109.2511.13752376
Xcode:
version: 26.2/17C52
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.16
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 19.1.0
wanted: 19.1.0
react-native:
installed: 0.81.5
wanted: 0.81.5
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
Stacktrace or Logs
N/A
MANDATORY Reproducer
https://snack.expo.dev/@jacob-venable-companycam/text-transform-repro
Screenshots and Videos
| Actual | Expected |
|---|---|
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、iOSデバイスまたはシミュレーターで必須の Expo Snack 再現コードを実行し、Text に対する直接の変換と View でラップする回避策を比較します。報告で関係している Fabric/New Renderer のパスを調査します。完了の条件は、Text に対する直接の translateY 変換が、Android と同様に iOS でも一貫して適用されることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- ios, react-native
- 領域
- mobile
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100