Back out "[react-native][PR] Remove the deprecated `isIPhoneX_deprecated` constant"

Summary:
Original commit changeset: 0b0b3a2d7b80

This constant is still in use at Facebook. Its removal has been pushed to sometime in the future.

Reviewed By: mdvacca

Differential Revision: D8721213

fbshipit-source-id: d1197c96804e4d2dc96be27421e5248a2394cdac
This commit is contained in:
Wenting Hu 2018-07-08 13:06:38 -07:00 коммит произвёл Facebook Github Bot
Родитель b99609e9d2
Коммит 781f181610
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -90,8 +90,8 @@ exports.examples = [
title: 'isIPhoneX_deprecated Example',
description:
'`DeviceInfo.isIPhoneX_deprecated` returns true only on iPhone X. ' +
'Note: This prop is deprecated and will be removed right after June 01, 2018. ' +
'Please use this only for a quick and temporary solution. ' +
'Note: This prop is deprecated and will be removed in a future ' +
'release. Please use this only for a quick and temporary solution. ' +
'Use <SafeAreaView> instead.',
render: () => <IsIPhoneXExample />,
},

Просмотреть файл

@ -103,7 +103,7 @@ static NSDictionary *RCTExportedDimensions(RCTBridge *bridge)
return @{
@"Dimensions": RCTExportedDimensions(_bridge),
// Note:
// This prop is deprecated and will be removed right after June 01, 2018.
// This prop is deprecated and will be removed in a future release.
// Please use this only for a quick and temporary solution.
// Use <SafeAreaView> instead.
@"isIPhoneX_deprecated": @(RCTIsIPhoneX()),