This commit is contained in:
Fredrik Burmester
2024-10-13 13:59:27 +02:00
parent ebc77f4ee2
commit 0c436408e7
6 changed files with 9 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
import * as NavigationBar from "expo-navigation-bar";
import React, { useEffect } from "react";
import { Platform } from "react-native";
import { Platform, View } from "react-native";
import { withLayoutContext } from "expo-router";
@@ -17,6 +17,7 @@ import type {
ParamListBase,
TabNavigationState,
} from "@react-navigation/native";
import {} from "@expo/vector-icons/Ionicons";
export const NativeTabs = withLayoutContext<
BottomTabNavigationOptions,
@@ -40,21 +41,24 @@ export default function TabLayout() {
name="(home)"
options={{
title: "Home",
tabBarIcon: ({ color, focused, size }) => ({ sfSymbol: "house" }),
tabBarIcon: ({ color, focused, size }) =>
require("@/assets/icons/house.fill.png"),
}}
/>
<NativeTabs.Screen
name="(search)"
options={{
title: "Search",
tabBarIcon: () => ({ sfSymbol: "magnifyingglass" }),
tabBarIcon: ({ color, focused, size }) =>
require("@/assets/icons/magnifyingglass.png"),
}}
/>
<NativeTabs.Screen
name="(libraries)"
options={{
title: "Library",
tabBarIcon: () => ({ sfSymbol: "server.rack" }),
tabBarIcon: ({ color, focused, size }) =>
require("@/assets/icons/server.rack.png"),
}}
/>
</NativeTabs>

BIN
assets/icons/house.fill.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
bun.lockb

Binary file not shown.

View File

@@ -30,6 +30,7 @@
"@shopify/flash-list": "1.6.4",
"@tanstack/react-query": "^5.56.2",
"@types/lodash": "^4.17.9",
"@types/react-native-vector-icons": "^6.4.18",
"@types/uuid": "^10.0.0",
"add": "^2.0.6",
"axios": "^1.7.7",