Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: drop usage of removed Platform.isTVOS field #1605

Merged
merged 1 commit into from Oct 3, 2022

Conversation

kkafar
Copy link
Member

@kkafar kkafar commented Oct 2, 2022

Description

Fixes #1604

Platform.isTVOS check was removed with react-native@0.70 (see the PR) as it was only wrapper for Platform.isTV check (which exists since 0.61).

Changes

Dropped usage of removed Platform.isTVOS check in favour of Platform.isTV.

Test code and steps to reproduce

See #1604 -- check on any app that the library now works with @types/react-native@0.70.*

Checklist

  • Ensured that CI passes

@kkafar kkafar merged commit 86864da into main Oct 3, 2022
@kkafar kkafar deleted the @kkafar/fix-platform-tvos-check branch October 3, 2022 09:01
kacperkapusciak pushed a commit to react-navigation/react-navigation that referenced this pull request Nov 7, 2022
**Motivation**

This PR supersedes a deprecated `Platform.isTVOS` which got removed in
facebook/react-native#34071 for the currently
used standard - a `Platform.isTV` check.

`Platform.isTV` check exists since react-native `v0.61` that way no
breaking changes are introduced to react-navigation.

Ref: software-mansion/react-native-screens#1605
kacperkapusciak pushed a commit to josemak25/react-navigation that referenced this pull request Dec 15, 2022
)

**Motivation**

This PR supersedes a deprecated `Platform.isTVOS` which got removed in
facebook/react-native#34071 for the currently
used standard - a `Platform.isTV` check.

`Platform.isTV` check exists since react-native `v0.61` that way no
breaking changes are introduced to react-navigation.

Ref: software-mansion/react-native-screens#1605
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeScript error with @types/react-native@0.70.4 due to usage of Platform.isTVOS
1 participant