-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Color of Back Button Arrow #2028
Comments
- Enhancement: support inheritance of scene props (useful for `headerMode` attribute for different RN StackNavigator animation) - Fix: attempt to fix react-navigation pushes instead of jumping when user taps the same tab (#2024) - Enhancement: use navBarButtonColor or tintColor or headerTintColor for image button tintcolor (#2028) - Fix: use backBehavior='initialRoute' by default (#2026) - Enhancement: allow right/leftTitle, right/leftButtonImage to be static functions within scene component - Enhancement: allow wrapping all screens and navbar buttons with `wrapBy` parameter for `Router`. It could be `observer` from MobX, or `connect` from Redux or any other function. - Fix: eslint formatting, fix CircleCI build
Please check beta.9 - you have to use navBarTintColor or navBarButtonImageColor or tintColor property. |
@aksonov Thanks a lot! |
@aksonov Just updated. Tried all the options, but still not getting it:
|
Sorry, did it only for right button.
Check now beta.10
… On 14 Jul 2017, at 20:20, Lucas Veiga ***@***.***> wrote:
@aksonov <https://github.com/aksonov> Just updated. Tried all the options, but still not getting it:
var sceneConfig = {
navigationBarStyle: {'black'},
headerTitleStyle: {
color: 'white',
fontWeight: '500'
},
tintColor: '#fff',
navBarTintColor: '#fff',
navBarButtonImageColor: '#fff',
headerTruncatedBackTitle: 'Voltar',
headerBackTitleStyle: {
color: 'white',
},
cardStyle: {
backgroundColor: 'white'
}
}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#2028 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABQpceR2IjoA6iA2_lTFqRtONHV7s4f8ks5sN7F6gaJpZM4OXZLA>.
|
@aksonov Getting this error: |
Oops, did typo again. Try beta.11
… On 14 Jul 2017, at 22:32, Lucas Veiga ***@***.***> wrote:
@aksonov <https://github.com/aksonov> Getting this error:
<https://user-images.githubusercontent.com/246373/28229745-5df22d6c-68ba-11e7-8994-f4114fbfbdca.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#2028 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABQpcTwRQrJo4_fepLarzk9XbDKliF1iks5sN9BlgaJpZM4OXZLA>.
|
@aksonov Tried all the options and didn't get it. What's the correct param? |
Check Example. I used tintColor
… On 14 Jul 2017, at 23:16, Lucas Veiga ***@***.***> wrote:
@aksonov <https://github.com/aksonov> Tried all the options and didn't get it. What's the correct param?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#2028 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABQpcYKmxcceHoTB8zdrGa10hz1ddBF6ks5sN9q2gaJpZM4OXZLA>.
|
I tried everything, specially using |
Do you see red color for arrow within Example?
… 16 июля 2017 г., в 22:12, Lucas Veiga ***@***.***> написал(а):
I tried everything, specially using tintColor as you used on the example, but it didn't work.
<Router createReducer={reducerCreate} tintColor='yellow'>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Yes, I do. But when I try to apply on my Router, it doesn't work. In fact, it works on my modals, but not on my card stack. |
Could you reproduce it on Example?
… 16 июля 2017 г., в 22:47, Lucas Veiga ***@***.***> написал(а):
Yes, I do. But when I try to apply on my Router, it doesn't work. In fact, it works on my modals, but not on my card stack.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
On example, it works. But not on my project. I'm setting this way:
|
Have you tried to set backTitle?
… 16 июля 2017 г., в 22:55, Lucas Veiga ***@***.***> написал(а):
On example, it works. But not on my project. I'm setting this way:
<Router createReducer={reducerCreate} tintColor='white'>
<Scene key="modal" modal hideNavBar tintColor='white'>
<Scene key="root" hideNavBar tintColor='white'>
<Scene key="tabbar"
tabs
showLabel={false}
tintColor='white'
tabBarComponent={this.tabBarElement}
headerBackTitle={'Voltar'}
activeTintColor={AppStyles.colors.default}
>
As you can see, I tried on every element.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Yes, I'm just trying to debug :) maybe you see built in reactnavigation bar but not rnrf one
… 16 июля 2017 г., в 23:01, Lucas Veiga ***@***.***> написал(а):
But backTitle sets the text, right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I thought as well, so I removed react-navigation from my project and it still not working. It's annoying me. |
I managed to work. Digging into your code I found that setting Thanks for your attention. |
Would you mind sharing a code snippet of the solution? I can't seem to make it work..
|
@Norfeldt write |
navBarButtonColor='#ffffff' does not work for me, tried all the options/variants mentioned above. |
@Daredevll applying just |
EXAMPLE |
titleStyle={{ fontFamily is not working, why? |
Have you imported the font 'Pacifico-Regular' in your project? |
Yes, I have. I just found that any fontFamily is not applicable to the title of the nav bar. |
I'm trying to change the color of back button arrow, but still not getting it.
The color of back button label I had success, but not on arrow.
Tips?
The text was updated successfully, but these errors were encountered: