Przeglądaj źródła

tab贴底显示

zbb 3 miesięcy temu
rodzic
commit
90b0d80972
1 zmienionych plików z 4 dodań i 3 usunięć
  1. 4 3
      components/CustomTabBar.tsx

+ 4 - 3
components/CustomTabBar.tsx

@@ -79,10 +79,11 @@ export function CustomTabBar() {
   const bottomPadding = insets.bottom;
 
   return (
-    <View style={[styles.wrapper, { paddingBottom: bottomPadding }]}>
+    <View style={styles.wrapper}>
       <ImageBackground
+        source={{ uri: Images.common.kaixinTabbarBg }}
         style={styles.container}
-        resizeMode="cover"
+        resizeMode="stretch"
       >
         <View style={styles.center}>
           {tabList.map((item, index) => (
@@ -95,7 +96,7 @@ export function CustomTabBar() {
               <Image
                 source={currentIndex === index ? item.active : item.img}
                 style={styles.icon}
-                contentFit="contain"
+                contentFit="fill"
               />
             </TouchableOpacity>
           ))}