Closed schoy3 closed 1 month ago
The versions mentioned in the issue for the following packages differ from the latest versions on npm:
@react-navigation/native
(found: 7.0.0-alpha.15
, latest: 6.1.17
)@react-navigation/bottom-tabs
(found: 7.0.0-alpha.18
, latest: 6.5.20
)@react-navigation/drawer
(found: 7.0.0-alpha.16
, latest: 6.6.15
)@react-navigation/material-top-tabs
(found: 7.0.0-alpha.15
, latest: 6.6.13
)@react-navigation/stack
(found: 7.0.0-alpha.16
, latest: 6.3.29
)Can you verify that the issue still exists after upgrading to the latest versions of these packages?
Hey @schoy3! Thanks for opening the issue. It seems that the issue doesn't contain a link to a repro.
The best way to get attention to your issue is to provide an easy way for a developer to reproduce the issue.
You can provide a repro using any of the following:
GitHub repo under your username
A snack link is preferred since it's the easiest way to both create and share a repro. If it's not possible to create a repro using a snack, link to a GitHub repo under your username is a good alternative. Don't link to a branch or specific file etc. as it won't be detected.
Try to keep the repro as small as possible by narrowing down the minimal amount of code needed to reproduce the issue. Don't link to your entire project or a project containing code unrelated to the issue. See "How to create a Minimal, Reproducible Example" for more information.
You can edit your original issue to include a link to the repro, or leave it as a comment. The issue will be closed automatically after a while if you don't provide a repro.
Please add a minimal repro
@migueldaipre Here is my expo snack: https://snack.expo.dev/@schoy2/top-navigation-icons
Current behavior
tabBarIcon are not showing in the tab bar.
Expected behavior
The tabBarIcon should display an icon in the top tab bar. Example code:
import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs'; const Tab = createMaterialTopTabNavigator();
export default function Example({ navigation, route }) { return ( <Tab.Navigator screenOptions={{ tabBarShowIcon: true }} > <Tab.Screen options={{ tabBarIcon: () => }}
name="Screen1" component={Screen1} />
</Tab.Navigator>
);
}
Reproduction
https://snack.expo.dev/@schoy2/top-navigation-icons
Platform
Packages
Environment