Skip to content

Commit

Permalink
Remove the isTVOS check (#34071)
Browse files Browse the repository at this point in the history
Summary:
Removes the `isTVOS` check, which just duplicated and returned the `isTV` check anyway.

## Changelog

<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://github.com/facebook/react-native/wiki/Changelog
-->

[General] [Removed] - Remove deprecated `isTVOS` constant.

Pull Request resolved: #34071

Test Plan: Run against CI, and apply changes as needed.

Reviewed By: cipolleschi

Differential Revision: D37434978

Pulled By: cortinico

fbshipit-source-id: 2b38253125251b0ce28cf10c88471d8f16704999
  • Loading branch information
Zachinquarantine authored and facebook-github-bot committed Jun 27, 2022
1 parent 8fe2b59 commit 6075d64
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Libraries/Utilities/Platform.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 6075d64

Please sign in to comment.