react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

[V2][Android] topBar title text is not displayed

Open hqdai opened this issue 8 years ago • 4 comments

Issue Description

topBar Text was displayed in version: 2.0.2452 But after going to version: 2.0.2466 Title of topbar is not displayed

Steps to Reproduce / Code Snippets / Screenshots

I'm using Navigaton.push(componentId, componentName, { passProps, options: { topBar: { title: { text: title }, height: Metrics.navBarHeight } } });


Environment

  • React Native Navigation version: 2.0.2466
  • React Native version: 0.56
  • Platform(s) (iOS, Android, or both?): Android
  • Device info (Simulator/Device? OS version? Debug/Release?): Android 7 Emulator

hqdai avatar Aug 10 '18 16:08 hqdai

This can help you https://github.com/wix/react-native-navigation/issues/3707

Luisvl13 avatar Aug 11 '18 05:08 Luisvl13

Thanks, Luisvl13, I tried but it doesn't success. This is my detail situation. I defined a root Tab with topBar options is as below root: { bottomTabs: { children: [ { stack: { children: [ { component: { name : ContainerIdConstant.NAVIGATION_HOME, options: { topBar: { visible : false, height : 0, drawBehind: true . . .

in this scene, I Push to an another scene

Navigaton.push(componentId, componentName, { passProps, options: { topBar: { title: { text: title }, height: Metrics.navBarHeight } } }); I tried to use mergeOptions to re-assign value in componentDidUpdate() function, I seems to be working but it takes some times and look so bad.

Any suggestion for this case?

Thank you!

hqdai avatar Aug 14 '18 08:08 hqdai

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest version and report back. Thank you for your contributions.

stale[bot] avatar Sep 28 '18 09:09 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Oct 05 '18 09:10 stale[bot]