From 6075d64acf6f8d74e18ef6568c9438f73fe56d44 Mon Sep 17 00:00:00 2001 From: Zachinquarantine Date: Mon, 27 Jun 2022 02:30:10 -0700 Subject: [PATCH] Remove the isTVOS check (#34071) Summary: Removes the `isTVOS` check, which just duplicated and returned the `isTV` check anyway. ## Changelog [General] [Removed] - Remove deprecated `isTVOS` constant. Pull Request resolved: https://github.com/facebook/react-native/pull/34071 Test Plan: Run against CI, and apply changes as needed. Reviewed By: cipolleschi Differential Revision: D37434978 Pulled By: cortinico fbshipit-source-id: 2b38253125251b0ce28cf10c88471d8f16704999 --- Libraries/Utilities/Platform.ios.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Libraries/Utilities/Platform.ios.js b/Libraries/Utilities/Platform.ios.js index c2eccca8fa1120..fc18ed727469ef 100644 --- a/Libraries/Utilities/Platform.ios.js +++ b/Libraries/Utilities/Platform.ios.js @@ -47,13 +47,6 @@ const Platform = { get isPad(): boolean { return this.constants.interfaceIdiom === 'pad'; }, - /** - * Deprecated, use `isTV` instead. - */ - // $FlowFixMe[unsafe-getters-setters] - get isTVOS(): boolean { - return Platform.isTV; - }, // $FlowFixMe[unsafe-getters-setters] get isTV(): boolean { return this.constants.interfaceIdiom === 'tv';