fix: android header bugs

This commit is contained in:
Fredrik Burmester
2024-09-10 10:25:48 +03:00
parent 6f34f2e6a6
commit 907f6193b5
7 changed files with 54 additions and 13 deletions

View File

@@ -1,5 +1,9 @@
import { useInfiniteQuery, useQuery } from "@tanstack/react-query";
import { useFocusEffect, useLocalSearchParams } from "expo-router";
import {
useFocusEffect,
useLocalSearchParams,
useNavigation,
} from "expo-router";
import * as ScreenOrientation from "expo-screen-orientation";
import { useAtom } from "jotai";
import React, { useCallback, useEffect, useLayoutEffect, useMemo } from "react";
@@ -128,6 +132,13 @@ const Page = () => {
staleTime: 60 * 1000,
});
const navigation = useNavigation();
useEffect(() => {
navigation.setOptions({
title: library?.Name || "",
});
}, [library]);
const fetchItems = useCallback(
async ({
pageParam,