Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7.0.0-alpha.15 @react-navigation/material-top-tabs - tabBarIcons are not showing. #11904

Closed
3 of 11 tasks
schoy3 opened this issue Mar 20, 2024 · 4 comments
Closed
3 of 11 tasks

Comments

@schoy3
Copy link

schoy3 commented Mar 20, 2024

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

  • Android
  • iOS
  • Web
  • Windows
  • MacOS

Packages

  • @react-navigation/bottom-tabs
  • @react-navigation/drawer
  • @react-navigation/material-top-tabs
  • @react-navigation/stack
  • @react-navigation/native-stack
  • react-native-tab-view

Environment

  • [] I've removed the packages that I don't use
package version
@react-navigation/native 7.0.0-alpha.15
@react-navigation/bottom-tabs 7.0.0-alpha.18
@react-navigation/drawer 7.0.0-alpha.16
@react-navigation/material-top-tabs 7.0.0-alpha.15
@react-navigation/stack 7.0.0-alpha.16
@react-navigation/native-stack 7.0.0-alpha.16
react-native-safe-area-context 4.7.1
react-native-screens 3.29.0
react-native-gesture-handler 2.15.0
react-native-reanimated 3.8.1
react-native-pager-view 6.2.2
react-native 0.73.6
node 18
npm or yarn yarn
@schoy3 schoy3 added the bug label Mar 20, 2024
Copy link

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?

Copy link

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:

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.

@migueldaipre
Copy link
Member

Please add a minimal repro

@schoy3
Copy link
Author

schoy3 commented Mar 20, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants