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
Change color of StatusBar #323
Comments
'StatusBar' should ideally wrap the component in the topmost level. |
Is there an example of this somewhere? Want to see some code. |
Agree, not sure where am i supposed to put the StatusBar. if i put inside of content it works but only until the app returning from background. an example will be much appreciated. from the react native docs
|
Is this problem solved? Is there any example? Why is this issue closed? |
You could use the StatusBarManager as work-around.
|
@PhiSpindler |
oh ok, my bad - I only tested it on android, there it worked |
Hey! found a neat workaround/hack that you can implement inside any native-base |
Finally @nacmonad!!! Thanks!! |
Checking out the This works for me in iOS: <Header iosBarStyle="light-content"> </Header> Hope that helps! |
You can also simply import
|
hi , how can i make my statusbar background gradient ? |
Just put it as top element in Content, and make sure to
if you are using Header of Native base . then put it inside as top element like below
|
thank you so much @nacmonad |
It works only in Android. |
|
this changed the text color to white. but the background color remain unchanged |
This can be helpfull |
Perfect! I tested and run successfully! :D |
I must have tried the solutions on every one of these comments, but none of them worked for me. All I'm trying to do is get light coloured text for the status bar on iOS. (I already get light text by default on Android). Is it tied to some particular version of NativeBase or React Native? I'm on React Native 0.59.1 and NativeBase 2.12.1. I'm not using Expo. Update I upgraded to RN 0.61 and putting |
Hi @brownieboy , I got the same issue with React Native 0.59.9, native-base 2.13.8. Do you have any ideas without upgrade the RN version? |
Sorry, no. The RN 0.61 upgrade also fixed a lot of other problems that I was having, so it was well worth the effort. |
import {StatusBar} from 'react-native'; this is work for me |
thank. it worked for me. I was searching for the solution in react native for the last 2 weeks. |
Is there any way i can change the color of
StatusBar
in NativeBasei wrote this and nothing changed
The text was updated successfully, but these errors were encountered: