tabbar width

This commit is contained in:
Thomas Demirdjian
2025-10-06 10:37:31 +02:00
parent 5d5ba3feaf
commit 4c444ffb60
2 changed files with 1 additions and 8 deletions
-6
View File
@@ -1,14 +1,10 @@
import { Motion } from "@legendapp/motion"; import { Motion } from "@legendapp/motion";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs"; import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import React from "reactn"; import React from "reactn";
import { Palette } from "../styles"; import { Palette } from "../styles";
import { Routes } from "./Routes"; import { Routes } from "./Routes";
import { tabs } from "../assets"; import { tabs } from "../assets";
import TabBar from "./TabBar"; import TabBar from "./TabBar";
import { Platform } from "react-native"; import { Platform } from "react-native";
import HitParade from "../screens/HitParade/HitParade.js"; import HitParade from "../screens/HitParade/HitParade.js";
import Library from "../screens/Library/Library"; import Library from "../screens/Library/Library";
@@ -30,8 +26,6 @@ export const BottomTabScreen = () => {
{ {
width: Platform.OS === "web" ? 30 : 24, width: Platform.OS === "web" ? 30 : 24,
height: Platform.OS === "web" ? 30 : 24, height: Platform.OS === "web" ? 30 : 24,
// marginBottom: Platform.OS === "web" ? 13 : 0,
// marginTop: Platform.OS === "web" ? 13 : 0,
}, },
]} ]}
source={icon} source={icon}
+1 -2
View File
@@ -2,7 +2,6 @@ import { Motion } from "@legendapp/motion";
import * as Haptics from "expo-haptics"; import * as Haptics from "expo-haptics";
import React, { useState } from "react"; import React, { useState } from "react";
import { Text, TouchableOpacity, View } from "react-native"; import { Text, TouchableOpacity, View } from "react-native";
import ItemContainer from "../components/ItemContainer/ItemContainer"; import ItemContainer from "../components/ItemContainer/ItemContainer";
import useLayoutType from "../hooks/useLayoutType"; import useLayoutType from "../hooks/useLayoutType";
import { gutters, Palette, Style } from "../styles"; import { gutters, Palette, Style } from "../styles";
@@ -18,7 +17,7 @@ const TabBar = ({ state = {}, descriptors = {}, navigation = {} }) => {
position: "absolute", position: "absolute",
bottom: gutters * 2, bottom: gutters * 2,
width: "90%", width: "90%",
maxWidth: 700, maxWidth: 500,
alignSelf: "center", alignSelf: "center",
zIndex: 1, zIndex: 1,
justifyContent: "center", justifyContent: "center",