add new action
This commit is contained in:
12
Apps.js
12
Apps.js
@@ -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}
|
||||
/>
|
||||
|
Reference in New Issue
Block a user