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

Docs update: PixelRatio.getFontScale #39709

Closed
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
8 changes: 4 additions & 4 deletions packages/react-native/Libraries/Utilities/PixelRatio.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ export interface PixelRatioStatic {
used to calculate the absolute font size, so any elements that
heavily depend on that should use this to do calculations.
If a font scale is not set, this returns the device pixel ratio.
* on Android value reflects the user preference set in Settings > Display > Font size
* on iOS value reflects the user preference set in Settings > Display & Brightness > Text Size,
value can also be updated in Settings > Accessibility > Display & Text Size > Larger Text
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.
If a font scale is not set, this returns the device pixel ratio.
*/
getFontScale(): number;

Expand Down