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.

header background colour is not changing in android

See original GitHub issue

“react”: “16.2.0”, “react-native”: “0.53.0”, “react-navigation”: “^1.0.3”

Expected behaviour

<Header backgroundColor="#2196F3" androidStatusBarColor="#000000"> header colour change to this #2196F3 colour to its by default colour in android

Actual behaviour

when i press ctrl + s by hot loading header colour changes to this #2196F3 colour. but when i rebuilt my app by giving command react-native run-android header colour comes to its by default colour

Steps to reproduce (code snippet or screenshot)

speakup

Screenshot of emulator/device

screenshot_20180221-235208

Is the bug present in both ios and android or in any one of them?

i don’t know about ios but in android

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

i don’t know

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

32reactions
akhil-gacommented, Feb 22, 2018

@rizwan92 as a workaround, you can specify the color in style prop of header.

 <Header
          style={{ backgroundColor: 'red' }}
          androidStatusBarColor="red">
</Header>
2reactions
raajnadarcommented, Apr 4, 2018

My bad the NativeBase is right I missed a small thing

Three themes to start with NativeBase is packed with three preset themes.

Platform: The default theme of NativeBase which maps to the design of the platform where the app runs. Material: Sometimes, you need Material design for both the platforms. Not everyone is a fan but Google does use Material design on iOS. This theme is not 100% material yet but, it can be used today. Common Colors: Most of the brands use a common color scheme for both the platforms but they also follow platform specific icons, font and orientation of the components. Common Colors theme is best suited for such use-cases.

I was importing Material.js and making changes in Platform.js file your Gif helped me to understand my mistake.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change the colour of a header bar - Stack Overflow
First you have to change in manifest where you have declared the activity . Change app theme style to noActionBar. Now ...
Read more >
Set the header background color or image - Google Support
Change the color or image of the header. Go to the Design tab. Click Customize to expand the set of choices for customizing...
Read more >
Change the theme and background color of your slides
You can use your mobile device to change the theme or background color of your PowerPoint slides. On your Android tablet or phone....
Read more >
Change the header's background color in the Next Experience ...
The Next Experience UI not only brings a completely new and cool design, ... Change the header's background color in the Next Experience...
Read more >
Change background colour of mobile nav menu | WordPress.org
1) Select Header · 2) Set the view to mobile on the bottom settings part · 3) Hover over the box on the...
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