Fontsize changing only once with systems settings in Android 15
まだ誰も着手していません。
- 主要言語
- C++
- スター
- 127k
- フォーク
- 25.3k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 4
説明
Description
When changing the sytems fontsize a react native application in Android does not change the fontsize until it is restarted, in Android versions <=14 it is rerendered in the new fontsize on the fly.
Steps to reproduce
- create new project from via npx @react-native-community/cli@latest init projectname and begin running it
- Use two android version for this test , particularly use Android 14 Pixel 8 , and another Android 15 Pixel 8
- start example app
- change fontsize at least two times -> Android 14 font resizes, Android 15 font stays the same
Android15 stays the same after changing fontSize:
Android15 after restart with changed fontSize:
Android14 before changing size:
Android14 afterchanging size:
Video showing only first fontSize change has effect until restarting App:
https://github.com/user-attachments/assets/42a4a157-6c72-4a99-aa9e-c315b9071adb
React Native Version
0.77.1 and before
Affected Platforms
Runtime - Android
Output of npx @react-native-community/cli info
System:
OS: macOS 15.3.1
CPU: (12) arm64 Apple M3 Pro
Memory: 1.34 GB / 36.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 21.6.2
path: ~/.nvm/versions/node/v21.6.2/bin/node
Yarn:
version: 1.22.21
path: ~/.nvm/versions/node/v21.6.2/bin/yarn
npm:
version: 10.2.4
path: ~/.nvm/versions/node/v21.6.2/bin/npm
Watchman:
version: 2024.12.02.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.2
- iOS 18.2
- macOS 15.2
- tvOS 18.2
- visionOS 2.2
- watchOS 11.2
Android SDK:
API Levels:
- "33"
- "34"
- "35"
Build Tools:
- 30.0.3
- 33.0.0
- 33.0.1
- 34.0.0
- 35.0.0
System Images:
- android-34 | Google APIs ARM 64 v8a
- android-35 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2024.2 AI-242.23726.103.2422.12816248
Xcode:
version: 16.2/16C5032a
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.10
path: /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/bin/javac
Ruby:
version: 2.7.8
path: /opt/homebrew/opt/ruby@2.7/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.1
wanted: 15.0.1
react:
installed: 18.3.1
wanted: 18.3.1
react-native:
installed: 0.77.1
wanted: 0.77.1
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: false
Stacktrace or Logs
nothing
Reproducer
https://github.com/recumbentseeker/fontscale
Screenshots and Videos
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、リンクされた fontscale reproducer を Android 14 と Android 15 で実行し、その後、issue に記載されているシステムのフォントサイズ変更を再現します。アプリの再起動前後の動作を比較し、関係する Android runtime の処理を追跡します。フォントサイズの変更によって、再起動を必要とせずに React Native アプリが引き続き更新され、Android 14 での動作も維持されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android
- 領域
- mobile
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100