feat: cache item size

This commit is contained in:
Fredrik Burmester
2024-12-02 11:13:05 +01:00
parent 5fd1d9080e
commit aec172d8f5
3 changed files with 55 additions and 30 deletions

View File

@@ -77,12 +77,12 @@ export default function TabLayout() {
name="(custom-links)"
options={{
title: "Custom Links",
// @ts-expect-error
tabBarItemHidden: settings?.showCustomMenuLinks ? false : true,
tabBarIcon:
Platform.OS == "android"
? () => require("@/assets/icons/list.png")
: () => ({ sfSymbol: "list.dash" }),
tabBarButton: (p) =>
settings?.showCustomMenuLinks == true ? undefined : null,
}}
/>
</NativeTabs>