react-native-navigation: Why 3-buttons navigation are transparent in Android 15+ - Stack Overflow

On Android 14 3-button navigation has a black background, but on Android 15 is transparent and does not

On Android 14 3-button navigation has a black background, but on Android 15 is transparent and does not look good. Is it possible something change? I used react-native-safe-area-context in my app, and I think I also need to check if insets.bottom appears because the height is fixed at 64

"@react-navigation/bottom-tabs": "^7.2.1",
"@react-navigation/material-top-tabs": "^7.1.1",
"@react-navigation/native": "^7.0.15",
"@react-navigation/stack": "^7.1.2",
"react-native": "0.78.0",
"react-native-gesture-handler": "^2.24.0",
"react-native-reanimated": "^3.17.1",
"react-native-safe-area-context": "^5.3.0",
"react-native-screens": "^4.9.2",
const BottomTabNavigator: FC = () => {
  return (
    <Tab.Navigator initialRouteName={Paths.Home}>
      <Tab.Screen
        name={Paths.Home}
        options={{
          headerShown: false,
          tabBarShowLabel: false,
          tabBarIcon: (props) => (
            <NUITabIcon icon={IconHome2} {...props} size={28} />
          ),
        }}
      />
      <Tab.Screen
        component={ScheduleScreen}
        name={Paths.Schedule}
        options={{
          tabBarIcon: (props) => (
            <TabIcon {...props} icon={IconCalendar2} size={24} />
          ),
        }}
      />
      <Tab.Screen component={TicketsScreen} name={Paths.Tickets} />
      <Tab.Screen
        component={ChatScreen}
        name={Paths.Chat}
        options={{
          tabBarIcon: (props) => <TabIcon {...props} icon={IconChat2} />,
        }}
      />
      <Tab.Screen
        component={ProfileScreen}
        name={Paths.Profile}
        options={{
          tabBarIcon: (props) => <TabIcon {...props} icon={IconAccount2} />,
        }}
      />
    </Tab.Navigator>
  );
};

export default BottomTabNavigator;

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744451942a4574904.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信