React-native-navigation: TopBar title loses bold when being set with mergeOptions()

Created on 12 Dec 2018  路  7Comments  路  Source: wix/react-native-navigation

Issue Description

The title in topBar loses its bold style after being set with mergeOptions()

Steps to Reproduce / Code Snippets / Screenshots

constructor(props) {
    super(props);
    Navigation.events().bindComponent(this);
    Navigation.events().registerCommandListener((name, params) => {
      if (name === "push") {
        Navigation.mergeOptions(this.props.componentId, {
          topBar: {
            title: {
              text: ""
            }
          }
        });
      }
    });
  }

componentDidAppear() {
    Navigation.mergeOptions(this.props.componentId, {
      topBar: {
        title: {
          text: "Announcement post details"
        }
      }
    });
  }

Environment

  • React Native Navigation version: 2.1.3
  • React Native version: 0.57.1
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): iPhone 6
iOS acceptebug 馃彋 stale

All 7 comments

Same issue here.

Same here.

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 Detox and report back. Thank you for your contributions.

The issue has been closed for inactivity.

I think this is still a problem, unless it's been fixed in a subsequent release?

Definitely still a problem for me on version 2.7.1. I'll try upgrading to the latest, but I haven't seen anything that would have fixed this.

@guyca is there anyway we can reopen this one? Correct me if I'm wrong, but as far as I can tell this hasn't been fixed yet.

Was this page helpful?
0 / 5 - 0 ratings