refactor: unmerge home and search tabs

This commit is contained in:
Adrian Castro
2024-03-09 19:01:26 +01:00
parent 0d135182c1
commit 284ead8f75
3 changed files with 206 additions and 8 deletions

View File

@@ -25,7 +25,7 @@ export default function TabLayout() {
tabPress: () => {
void Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
switch (route.name) {
case "search":
case "index":
focusSearchInputRef.current();
break;
}
@@ -79,7 +79,7 @@ export default function TabLayout() {
<Tabs.Screen
name="search"
options={{
title: "Home",
title: "Search",
tabBarLabel: "",
tabBarIcon: ({ focused }) => (
<View