Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update PixelRatio 'getFontScale' method description #28407

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Libraries/Utilities/PixelRatio.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ class PixelRatio {
*
* If a font scale is not set, this returns the device pixel ratio.
*
* Currently this is only implemented on Android and reflects the user preference set in
* Settings > Display > Font size, on iOS it will always return the default pixel ratio.
* @platform android
* This reflects the user preference set in:
* - Settings > Display > Font size on Android,
* - Settings > Display & Brightness > Text Size on iOS.
*/
static getFontScale(): number {
return Dimensions.get('window').fontScale || PixelRatio.get();
Expand Down