You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a custom navBar component in a Stack navigator and setting a scene's title through component's navigationOptions, the title should be passed as a prop to the navBar, preferably as props.title.
Actual behaviour
The only title I get is the one set under the title key of the Scene. The weird thing is that when I'm using the StackNavigator's default header, the title is passed correctly.
The text was updated successfully, but these errors were encountered:
I have the same promble.
At present,I can only use the title key of the Scene,and in custom navBar component ,I only render icon image.
I hope it works for you
Hi,you can try showLabel={false} ,like this: <Scene key='upPortal' lazy={true} tabs={true} showLabel={false}> //other Scene </Scene>
that will hide all the default title under the Scene
Sorry, but you are using react-navigation feature (static navigationOptions) and want to make it work within RNRF advanced functionality (like dynamic prop.title)? Please read docs and follow docs how to define custom navBar for RNRF.
Version
Tell us which versions you are using:
Expected behaviour
When using a custom navBar component in a
Stack
navigator and setting a scene's title through component'snavigationOptions
, the title should be passed as a prop to the navBar, preferably asprops.title
.Actual behaviour
The only title I get is the one set under the
title
key of theScene
. The weird thing is that when I'm using theStackNavigator
's default header, the title is passed correctly.The text was updated successfully, but these errors were encountered: