add new action

This commit is contained in:
harukin-expo-dev-env
2025-02-04 12:18:54 +00:00
parent ceffd2da7e
commit e04cfb9a8b
2 changed files with 63 additions and 17 deletions

12
Apps.js
View File

@@ -14,15 +14,13 @@ export function AppContainer() {
const Tab = createBottomTabNavigator();
const { areaInfo, areaIconBadgeText, isInfo } = useAreaInfo();
const navigationRef = React.useRef();
const getTabProps = (name, label, icon, iconFamily, tabBarBadge, style) => ({
const getTabProps = (name, label, icon, iconFamily, tabBarBadge, isInfo) => ({
name,
options: {
tabBarLabel: label,
headerShown: false,
gestureEnabled: true,
tabBarIcon: initIcon(icon, iconFamily),
tabBarBadge,
tabBarBadgeStyle: style,
tabBarIcon: initIcon(icon, iconFamily,tabBarBadge,isInfo),
},
});
@@ -38,7 +36,6 @@ export function AppContainer() {
screenOptions={{
lazy: false,
animation: "shift",
tabBarVariant: "uikit",
}}
detachInactiveScreens={false}
lazy={false}
@@ -59,10 +56,7 @@ export function AppContainer() {
"train",
"Ionicons",
areaInfo ? areaIconBadgeText : undefined,
isInfo && {
backgroundColor: "#00b8ff",
color: "white",
}
isInfo
)}
children={TNDView}
/>