tabbar width
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user