forked from Ninjalama/streamyfin_mirror
fix: tv home screen navigation (#732)
This commit is contained in:
@@ -36,6 +36,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import {
|
import {
|
||||||
ActivityIndicator,
|
ActivityIndicator,
|
||||||
|
Platform,
|
||||||
RefreshControl,
|
RefreshControl,
|
||||||
ScrollView,
|
ScrollView,
|
||||||
TouchableOpacity,
|
TouchableOpacity,
|
||||||
@@ -87,6 +88,12 @@ export const HomeIndex = () => {
|
|||||||
|
|
||||||
const { downloadedFiles, cleanCacheDirectory } = useDownload();
|
const { downloadedFiles, cleanCacheDirectory } = useDownload();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
if (Platform.isTV) {
|
||||||
|
navigation.setOptions({
|
||||||
|
headerLeft: () => null,
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
const hasDownloads = downloadedFiles && downloadedFiles.length > 0;
|
const hasDownloads = downloadedFiles && downloadedFiles.length > 0;
|
||||||
navigation.setOptions({
|
navigation.setOptions({
|
||||||
headerLeft: () => (
|
headerLeft: () => (
|
||||||
|
|||||||
Reference in New Issue
Block a user