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
Add support for tintColor in header #36
Comments
That sounds to me like a good first task. |
If someone can explain what the best naming convention for styling all of the components would be this should be fairly straightforward.
Anymore? E.g. Would titleStyle and tintColor as 2 individual props on header be ok? Cc @satya164 |
We should add a single |
Okay sounds good, will see if I can get this in within the next few hours. |
There's already |
@grabbou from the looks of it though the Header class only applies the onPress prop. On my phone so could be wrong but will check it out soon. |
The |
I'm applying header: ({ state }) => {
return ({
title: 'Some title',
tintColor: '#ffffff', However, when logging out Is this correct? return renderLeftComponent(props); This passes in props, but does not include the |
Your usage looks correct. But hold off a bit since @grabbou is doing some refactors right now.
I'm not fully sure, but I think it might be related to #48 |
API seems to have changed in 1.0.0-beta, is there a way to use tintColor from |
Yeah, just return |
May I ask: why a single color to tint header title and back icon/label? In the standard header, the title is black and the back button is blue (on iOS). I'd like to change the back button color, is there some prop to do that? |
There's already tintColor prop on a back button that is applied. <HeaderBackButton tintColor = '#fff' onPress={() => navigation.goBack(null)} /> |
Thanks, works !! |
…ples Add switch backbehavior examples
This should style a text and icon colors. See #30 for reference
The text was updated successfully, but these errors were encountered: