Skip to content

Commit

Permalink
fix: drop usage of removed Platform.isTVOS field (#1605)
Browse files Browse the repository at this point in the history
## Description

Fixes #1604 

`Platform.isTVOS` check was removed with `react-native@0.70` [(see the
PR)](facebook/react-native#34071) 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

- [x] Ensured that CI passes
  • Loading branch information
kkafar committed Oct 3, 2022
1 parent 4ed5ee3 commit 86864da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/native-stack/utils/getDefaultHeaderHeight.tsx
Expand Up @@ -22,7 +22,7 @@ export default function getDefaultHeaderHeight(
statusBarHeight = 0;
}

if (Platform.isPad || Platform.isTVOS) {
if (Platform.isPad || Platform.isTV) {
headerHeight = isFromSheetModal ? formSheetModalHeight : 50;
} else {
if (isLandscape) {
Expand Down

0 comments on commit 86864da

Please sign in to comment.