feat: slight visual indication that search tab is focused

This commit is contained in:
Adrian Castro
2024-02-18 21:37:46 +01:00
parent 62fdd3e99c
commit 8914cca32c

View File

@@ -56,8 +56,10 @@ export default function TabLayout() {
options={{
title: "Search",
tabBarLabel: "",
tabBarIcon: () => (
<View className="android:top-2 ios:top-2 flex h-14 w-14 items-center justify-center overflow-hidden rounded-full bg-primary-400 text-center align-middle text-2xl text-white">
tabBarIcon: ({ focused }) => (
<View
className={`android:top-2 ios:top-2 flex h-14 w-14 items-center justify-center overflow-hidden rounded-full ${focused ? "bg-primary-300" : "bg-primary-400"} text-center align-middle text-2xl text-white`}
>
<TabBarIcon name="search" color="#FFF" />
</View>
),