question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong menu icon color in Android.

See original GitHub issue

react-native, react and native-base version

react-native (0.52.0), react (16.2.0) and native-base (2.3.7)

Expected behaviour

White menu icon on Android.

Actual behaviour

The menu icon has the iOS blue color. (iosToolbarBtnColor | “#007aff”)

Steps to reproduce (code snippet or screenshot)

    <Header>
        <Left>
            <Button
                transparent
                onPress={() => this.props.navigation.navigate("DrawerOpen")}>
                <Icon name="menu" />
            </Button>
        </Left>
        <Body>
            <Title>HomeScreen</Title>
        </Body>
        <Right />
    </Header>

Screenshot of emulator/device

image

Any other additional info which would help us debug the issue quicker.

Not using CRNA, not declaring a custom theme. Already ran react-native link. Running in a physical device.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Gloixcommented, Jan 25, 2018

So, if I understand it right:

  • commonColor.js declares common colors to all default themes
  • material.js declares a material design like theme (although some checks are made for minor accomodations to the current platform?).
  • platform.js declares a platform dependent theme.

I noticed the extracted theme from the theme setup instructions points to variables/platform, so it’s using platform.js, and therefore is using the toolbarBtnColorproperty as @akhil-geekyants points:

toolbarBtnColor: "#007aff",

which actually produces the light blue menu tinting.

Now, is this color intended? I’m asking since every demo screen shown has a white menu icon like in the Readme file (and also looks more natural IMO):

Android demo animation

1reaction
akhil-gacommented, Jan 25, 2018

@Gloix Check line here in version 2.3.7 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Back Arrow and Overflow Icons Wrong Color in Pre-Lollipop ...
First: It is using colorControlNormal; Second: It is using vector. HOW TO FIX. According to Library V23.2.0 Release notes (LINK HERE), we have ......
Read more >
Android: Changing the Toolbar's text color and overflow icon ...
It's fairly easy to change the ActionBar's text color, but changing the color of its overflow icon is harder. It seems normal to...
Read more >
The curious case of the Overflow Icon Color | by Martin Bonnin
How come there is no java method like setOverflowIconColor() to change the color of the icon ? This is one of my biggest...
Read more >
Change Every Icon Color On Your Samsung Galaxy! - YouTube
Now we finally can change the color of every icon on our Samsung stock One Ui 4 launcher with Good Lock and Theme...
Read more >
Adaptive icons - Android Developers
If a user has enabled themed app icons (in other words, turned on the Themed icons toggle in system settings), and the launcher...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found