Skip to content

BottomNavigation.Bar rendering additional white line #4836

@Bk49

Description

@Bk49

I noticed my BottomTab has this weird white line above it recently, anyone managed to fix it with the use of BottomNavigation.Bar?. I've tried multiple guides on modifying the shadows, elevations and borderTopWidth. No luck since they are not catered for React Native Paper Bottom Navigation Bar. Component inspections also returns now border for the Tabs but it is still there

Image

Code

<BottomNavigation.Bar
                        navigationState={{
                            ...rest,
                            routes: routes.filter(
                                (route) =>
                                    route.name.substring(0, game.length) ===
                                    game
                            ),
                        }}
                        safeAreaInsets={insets}
                        onTabPress={({ route }) =>
                            router.replace(`/auth/${route.name}` as Href)
                        }
                        renderIcon={({ route, focused, color }) => {
                            const { tabBarIcon } =
                                descriptors[route.key].options;
                            return tabBarIcon
                                ? tabBarIcon({ focused, color, size: 24 })
                                : null;
                        }}
                        renderLabel={({ route, focused, color }) => {
                            const { tabBarLabel } =
                                descriptors[route.key].options;
                            return tabBarLabel &&
                                typeof tabBarLabel !== "string"
                                ? tabBarLabel({
                                      focused,
                                      color,
                                      position: "below-icon",
                                      children: "",
                                  })
                                : null;
                        }}
                    />

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion related to the library, not an issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions