react-native-navigation
react-native-navigation copied to clipboard
[V2] Top bar title is not showing
Issue Description
Top bar title is not showing on iOS as expected to see Dashboard.
I see only bottom border of top bar.
Steps to Reproduce / Code Snippets / Screenshots
Navigation.setRoot({
root: {
stack: {
children: [{
component: {
name: 'DashboardScene',
}
}],
options: {
topBar: {
title: {
text: 'Dashboard'
}
}
}
}
}
});
Environment
- React Native Navigation version: 2.0.2641
- React Native version: 0.57.0
- Platform(s) (iOS, Android, or both?): iOS(Not sure for android yet)
- Device info (Simulator/Device? OS version? Debug/Release?): Device/Debug
@bdavid68 try to move those options to the component. LIke so:
component: {
...
options: {
topBar: {
...
title: {
text: 'Dashboard',
},
},
},
},
}
Thanks, @vshkl. It works!
Thanks!. This should be updated on the oficial docs.