Resolve icon issues.
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
import { checkUserSession } from "@/redux/user/user.actions";
|
||||
import { selectBodyshop, selectCurrentUser } from "@/redux/user/user.selectors";
|
||||
import { ApolloProvider } from "@apollo/client";
|
||||
import MaterialIcons from "@expo/vector-icons/MaterialIcons";
|
||||
import { Stack } from "expo-router";
|
||||
import { Icon, Label, NativeTabs } from "expo-router/unstable-native-tabs";
|
||||
import {
|
||||
Icon,
|
||||
Label,
|
||||
NativeTabs,
|
||||
VectorIcon,
|
||||
} from "expo-router/unstable-native-tabs";
|
||||
import { useEffect } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { ActivityIndicator, View } from "react-native";
|
||||
import { ActivityIndicator, Platform, View } from "react-native";
|
||||
import { Provider as PaperProvider } from "react-native-paper";
|
||||
import { connect, Provider } from "react-redux";
|
||||
import { PersistGate } from "redux-persist/integration/react";
|
||||
@@ -21,13 +27,34 @@ function AuthenticatedLayout() {
|
||||
<NativeTabs minimizeBehavior="onScrollDown" disableTransparentOnScrollEdge>
|
||||
<NativeTabs.Trigger name="jobs">
|
||||
<Label>{t("joblist.labels.activejobs")}</Label>
|
||||
<Icon sf="checklist" drawable="custom_android_drawable" />
|
||||
|
||||
{Platform.select({
|
||||
ios: <Icon sf="checklist" drawable="custom_android_drawable" />,
|
||||
android: (
|
||||
<Icon
|
||||
src={<VectorIcon family={MaterialIcons} name="checklist" />}
|
||||
/>
|
||||
),
|
||||
})}
|
||||
</NativeTabs.Trigger>
|
||||
<NativeTabs.Trigger name="settings">
|
||||
<Icon sf="gear" drawable="custom_settings_drawable" />
|
||||
{Platform.select({
|
||||
ios: <Icon sf="gear" drawable="custom_android_drawable" />,
|
||||
android: (
|
||||
<Icon src={<VectorIcon family={MaterialIcons} name="settings" />} />
|
||||
),
|
||||
})}
|
||||
<Label>{t("settings.titles.settings")}</Label>
|
||||
</NativeTabs.Trigger>
|
||||
<NativeTabs.Trigger name="search" role="search">
|
||||
{Platform.select({
|
||||
//ios: <Icon sf="checklist" drawable="custom_android_drawable" />,
|
||||
android: (
|
||||
<Icon
|
||||
src={<VectorIcon family={MaterialIcons} name="search" />}
|
||||
/>
|
||||
),
|
||||
})}
|
||||
<Label>Search</Label>
|
||||
</NativeTabs.Trigger>
|
||||
</NativeTabs>
|
||||
|
||||
Reference in New Issue
Block a user