tangled
alpha
login
or
join now
teal.fm
/
teal
110
fork
atom
Your music, beautifully tracked. All yours. (coming soon)
teal.fm
teal-fm
atproto
110
fork
atom
overview
issues
pulls
pipelines
hide tab bar if not logged in
Natalie B.
1 year ago
ea5cc34b
4580cfed
+3
-3
1 changed file
expand all
collapse all
unified
split
apps
amethyst
app
(tabs)
_layout.tsx
+3
-3
apps/amethyst/app/(tabs)/_layout.tsx
···
5
5
6
6
import Colors from "../../constants/Colors";
7
7
import { Icon, iconWithClassName } from "../../lib/icons/iconWithClassName";
8
8
-
import useIsMobile from "@/hooks/useIsMobile";
8
8
+
//import useIsMobile from "@/hooks/useIsMobile";
9
9
import { useStore } from "@/stores/mainStore";
10
10
import { useColorScheme } from "nativewind";
11
11
···
19
19
const { colorScheme } = useColorScheme();
20
20
const authStatus = useStore((state) => state.status);
21
21
// if we are on web but not native and web width is greater than 1024px
22
22
-
const hideTabBar = useIsMobile() || authStatus !== "loggedIn";
22
22
+
const hideTabBar = authStatus !== "loggedIn"; // || useIsMobile()
23
23
24
24
return (
25
25
<Tabs
···
33
33
tabBarShowLabel: true,
34
34
tabBarStyle: {
35
35
//height: 75,
36
36
-
display: "flex",
36
36
+
display: hideTabBar ? "none" : "flex",
37
37
},
38
38
}}
39
39
>