mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 12:23:24 +00:00
feat: slight visual indication that search tab is focused
This commit is contained in:
@@ -56,8 +56,10 @@ export default function TabLayout() {
|
|||||||
options={{
|
options={{
|
||||||
title: "Search",
|
title: "Search",
|
||||||
tabBarLabel: "",
|
tabBarLabel: "",
|
||||||
tabBarIcon: () => (
|
tabBarIcon: ({ focused }) => (
|
||||||
<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">
|
<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" />
|
<TabBarIcon name="search" color="#FFF" />
|
||||||
</View>
|
</View>
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user