From 24c0dc3013f7f0c4939b32c40b7e5bbe153ebd6a Mon Sep 17 00:00:00 2001 From: janczer Date: Mon, 20 Aug 2018 14:36:36 -0700 Subject: [PATCH] =?UTF-8?q?Add=20to=20PixelRation=20documentation=20inform?= =?UTF-8?q?ation=20about=20iPhone=20SE=20and=20iPho=E2=80=A6=20(#20695)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Release Notes: -------------- [DOCS] [BUGFIX][PixelRatio.js] - Add information about iPhone SE and iPhone X Pull Request resolved: https://github.com/facebook/react-native/pull/20695 Differential Revision: D9408433 Pulled By: hramos fbshipit-source-id: 917390e30801ce353fd999b375c788bd38568a05 --- Libraries/Utilities/PixelRatio.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Libraries/Utilities/PixelRatio.js b/Libraries/Utilities/PixelRatio.js index 3982be19a..288a07d4b 100644 --- a/Libraries/Utilities/PixelRatio.js +++ b/Libraries/Utilities/PixelRatio.js @@ -68,9 +68,15 @@ class PixelRatio { * - iPhone 4, 4S * - iPhone 5, 5c, 5s * - iPhone 6 + * - iPhone 7 + * - iPhone 8 + * - iPhone SE * - xhdpi Android devices (320 dpi) * - PixelRatio.get() === 3 - * - iPhone 6 plus + * - iPhone 6 Plus + * - iPhone 7 Plus + * - iPhone 8 Plus + * - iPhone X * - xxhdpi Android devices (480 dpi) * - PixelRatio.get() === 3.5 * - Nexus 6