diff --git a/app/(auth)/(tabs)/(home)/_layout.tsx b/app/(auth)/(tabs)/(home)/_layout.tsx index d3ef928a..a7cc3cb3 100644 --- a/app/(auth)/(tabs)/(home)/_layout.tsx +++ b/app/(auth)/(tabs)/(home)/_layout.tsx @@ -1,6 +1,6 @@ import { Chromecast } from "@/components/Chromecast"; import { nestedTabPageScreenOptions } from "@/components/stacks/NestedTabPageStack"; -import { Feather } from "@expo/vector-icons"; +import { Feather, Ionicons } from "@expo/vector-icons"; import { Stack, useRouter } from "expo-router"; import { Platform, TouchableOpacity, View } from "react-native"; diff --git a/app/(auth)/(tabs)/(home)/index.tsx b/app/(auth)/(tabs)/(home)/index.tsx index 2a9cd1ab..0f777a45 100644 --- a/app/(auth)/(tabs)/(home)/index.tsx +++ b/app/(auth)/(tabs)/(home)/index.tsx @@ -107,9 +107,9 @@ export default function index() { setIsConnected(state.isConnected); }); - cleanCacheDirectory() - .then(r => console.log("Cache directory cleaned")) - .catch(e => console.error("Something went wrong cleaning cache directory")) + cleanCacheDirectory().catch((e) => + console.error("Something went wrong cleaning cache directory") + ); return () => { unsubscribe(); }; diff --git a/app/(auth)/(tabs)/_layout.tsx b/app/(auth)/(tabs)/_layout.tsx index 11fa4b67..47e5bfaa 100644 --- a/app/(auth)/(tabs)/_layout.tsx +++ b/app/(auth)/(tabs)/_layout.tsx @@ -48,7 +48,10 @@ export default function TabLayout() { Platform.OS == "android" ? ({ color, focused, size }) => require("@/assets/icons/house.fill.png") - : () => ({ sfSymbol: "house" }), + : ({ focused }) => + focused + ? { sfSymbol: "house.fill" } + : { sfSymbol: "house" }, }} /> require("@/assets/icons/magnifyingglass.png") - : () => ({ sfSymbol: "magnifyingglass" }), + : ({ focused }) => + focused + ? { sfSymbol: "magnifyingglass" } + : { sfSymbol: "magnifyingglass" }, }} /> - require("@/assets/icons/heart.png") - : () => ({ sfSymbol: "heart" }), + focused + ? require("@/assets/icons/heart.fill.png") + : require("@/assets/icons/heart.png") + : ({ focused }) => + focused + ? { sfSymbol: "heart.fill" } + : { sfSymbol: "heart" }, }} /> require("@/assets/icons/server.rack.png") - : () => ({ sfSymbol: "rectangle.stack" }), + : ({ focused }) => + focused + ? { sfSymbol: "rectangle.stack.fill" } + : { sfSymbol: "rectangle.stack" }, }} /> require("@/assets/icons/list.png") - : () => ({ sfSymbol: "list.dash" }), + ? ({ focused }) => require("@/assets/icons/list.png") + : ({ focused }) => + focused + ? { sfSymbol: "list.dash.fill" } + : { sfSymbol: "list.dash" }, }} /> diff --git a/app/_layout.tsx b/app/_layout.tsx index 8c9da2f7..bf779be5 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -1,4 +1,5 @@ import "@/augmentations"; +import { Text } from "@/components/common/Text"; import { DownloadProvider } from "@/providers/DownloadProvider"; import { getOrSetDeviceId, @@ -36,7 +37,7 @@ import * as SplashScreen from "expo-splash-screen"; import * as TaskManager from "expo-task-manager"; import { Provider as JotaiProvider, useAtom } from "jotai"; import { useEffect, useRef } from "react"; -import { Appearance, AppState } from "react-native"; +import { Appearance, AppState, TouchableOpacity } from "react-native"; import { SystemBars } from "react-native-edge-to-edge"; import { GestureHandlerRootView } from "react-native-gesture-handler"; import "react-native-reanimated"; diff --git a/assets/icons/heart.fill.png b/assets/icons/heart.fill.png new file mode 100644 index 00000000..25bb2527 Binary files /dev/null and b/assets/icons/heart.fill.png differ diff --git a/components/home/ScrollingCollectionList.tsx b/components/home/ScrollingCollectionList.tsx index 2fddec7f..17b4ec77 100644 --- a/components/home/ScrollingCollectionList.tsx +++ b/components/home/ScrollingCollectionList.tsx @@ -11,7 +11,6 @@ import ContinueWatchingPoster from "../ContinueWatchingPoster"; import { ItemCardText } from "../ItemCardText"; import { TouchableItemRouter } from "../common/TouchableItemRouter"; import SeriesPoster from "../posters/SeriesPoster"; -import { useEffect } from "react"; interface Props extends ViewProps { title?: string | null; @@ -45,7 +44,7 @@ export const ScrollingCollectionList: React.FC = ({ if (hideIfEmpty === true && data?.length === 0) return null; return ( - + {title} @@ -85,10 +84,10 @@ export const ScrollingCollectionList: React.FC = ({ ) : ( - {data?.map((item, index) => ( + {data?.map((item) => (