Skip to content

Commit

Permalink
Update pixelratio.md (facebook#2639)
Browse files Browse the repository at this point in the history
* Update pixelratio.md

Fix spelling mistake for Pixel Ratio text font size change settings for IOS.

* backport typo fix to the latets versioned docs

Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>
  • Loading branch information
passionInfinite and Simek authored Jun 4, 2021
1 parent 9b69912 commit fabc17b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/pixelratio.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ static getFontScale(): number
Returns the scaling factor for font sizes. This is the ratio that is used to calculate the absolute font size, so any elements that heavily depend on that should use this to do calculations.

- 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 & Test Size > Larger Text**
- 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**

If a font scale is not set, this returns the device pixel ratio.

Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-0.64/pixelratio.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ static getFontScale(): number
Returns the scaling factor for font sizes. This is the ratio that is used to calculate the absolute font size, so any elements that heavily depend on that should use this to do calculations.

- 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 & Test Size > Larger Text**
- 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**

If a font scale is not set, this returns the device pixel ratio.

Expand Down

0 comments on commit fabc17b

Please sign in to comment.