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

Bugs + (partial) Fixes: Non-responsiveness of "tabBarLabelStyle" and "tabBarLabel" in MaterialTopTabBar #11983

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

DrStoop
Copy link

@DrStoop DrStoop commented May 9, 2024

Motivation

Bug fix: The props tabBarLabelStyle and tabBarLabel are ignored by MaterialTopTabBar. This pull requests solves the problem full for tabBarLabelStyle. For tabBarLabel this PR only fixes the problem for tabBarLabel(s) of type string.

Test plan

Create a MaterialTopTabBar navigator with customized tab bar label style(s) (prop: "tabBarLabelStyle") which is currently ignored. After merging the commit, this should not be the case anymore. The same applies to the "tabBarLabel".

DrStoop and others added 5 commits April 28, 2024 14:12
MaterialTopTabBar is ignoring the prop "tabBarLableStyle", so the label style couldn't be changed. The bug was that the MaterialLabelType variable "lableStyle" is incompatible with the "label" input variable of customlabel in TabBarItemInternal (react-native-tab-view).
The prop "tabBarLabel" is ignored by MaterialTopTabBar. It only displays the route name. This fix allows strings for "tabBarLabel" but no components (as suggested by docs).
labelStyle is not being passed through to TabBarItem -> TabBarItemInternal
Copy link

netlify bot commented May 9, 2024

Deploy Preview for react-navigation-example ready!

Name Link
🔨 Latest commit 726c6fc
🔍 Latest deploy log https://app.netlify.com/sites/react-navigation-example/deploys/663d00edef343b0008478675
😎 Deploy Preview https://deploy-preview-11983--react-navigation-example.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@martin-desimone
Copy link

we need this.

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

Successfully merging this pull request may close these issues.

None yet

2 participants