Skip to content

Android active tint color wrong on mount #186

@fedpre

Description

@fedpre

Before submitting a new issue

  • I tested using the latest version of the library, as the bug might be already fixed.
  • I tested using a supported version of react native.
  • I checked for possible duplicate issues, with possible answers.

Bug summary

Screen.Recording.2024-12-10.at.12.57.33.PM.mov

As you can see from the video, when starting the app the bottom nav bar active tint color is wrong. Once pressing on a different element, it changes to the correct one.

Expected behaviour: the correct color should be from the beginning

Also, as a question - Is it possible to always show all the labels on Android without the animation?

Library version

0.7.3

Environment info

System:
  OS: macOS 15.1.1
  CPU: (10) arm64 Apple M1 Max
  Memory: 539.05 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.8.0
    path: ~/.nvm/versions/node/v20.8.0/bin/node
  Yarn:
    version: 3.6.4
    path: ~/.nvm/versions/node/v20.8.0/bin/yarn
  npm:
    version: 10.1.0
    path: ~/.nvm/versions/node/v20.8.0/bin/npm
  Watchman:
    version: 2024.12.02.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.13.0
    path: /Users/federicopregnolato/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.1
      - iOS 18.1
      - macOS 15.1
      - tvOS 18.1
      - visionOS 2.1
      - watchOS 11.1
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23339.11.2421.12550806
  Xcode:
    version: 16.1/16B40
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.11
    path: /usr/bin/javac
  Ruby:
    version: 2.7.6
    path: /Users/federicopregnolato/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.0
    wanted: 15.0.0
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.1
    wanted: 0.76.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Steps to reproduce

  1. Install the library
  2. Implement it with react-navigation
  3. Change the active tint color

Reproducible sample code

<TabsNavigator.Navigator screenOptions={{headerShown: false}}>
      {tabs.map((tab, index) => {
        return (
          <TabsNavigator.Screen
            key={index}
            name={tab.name}
            component={tab.component}
            options={{
              tabBarIcon: () => tab.icon,
              unmountOnBlur: false,
              tabBarActiveTintColor: '#125E5C',
              tabBarLabel: tab.name,
            }}
          />
        );
      })}
    </TabsNavigator.Navigator>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions