Wrong menu icon color in Android.
See original GitHub issuereact-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
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:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So, if I understand it right:
commonColor.js
declares common colors to all default themesmaterial.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 thetoolbarBtnColor
property as @akhil-geekyants points: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):
@Gloix Check line here in version 2.3.7 .