Fix minor typo in PixelRatio.md
Summary: iphone -> iPhone Closes https://github.com/facebook/react-native/pull/11802 Differential Revision: D4397404 fbshipit-source-id: 116fe8b52de2a1db884ed10863cb1835304f8efb
This commit is contained in:
parent
453e70d19c
commit
a1d77af07c
|
@ -1,6 +1,6 @@
|
|||
## Pixel Grid Snapping
|
||||
|
||||
In iOS, you can specify positions and dimensions for elements with arbitrary precision, for example 29.674825. But, ultimately the physical display only have a fixed number of pixels, for example 640×960 for iphone 4 or 750×1334 for iphone 6. iOS tries to be as faithful as possible to the user value by spreading one original pixel into multiple ones to trick the eye. The downside of this technique is that it makes the resulting element look blurry.
|
||||
In iOS, you can specify positions and dimensions for elements with arbitrary precision, for example 29.674825. But, ultimately the physical display only have a fixed number of pixels, for example 640×960 for iPhone 4 or 750×1334 for iPhone 6. iOS tries to be as faithful as possible to the user value by spreading one original pixel into multiple ones to trick the eye. The downside of this technique is that it makes the resulting element look blurry.
|
||||
|
||||
In practice, we found out that developers do not want this feature and they have to work around it by doing manual rounding in order to avoid having blurry elements. In React Native, we are rounding all the pixels automatically.
|
||||
|
||||
|
|
Loading…
Reference in New Issue