React-native-navigation: mergeOptions doesn't work on leftButtonColor or rightButtonColor

Created on 28 May 2019  路  4Comments  路  Source: wix/react-native-navigation

Issue Description

mergeOptions doesn't work on leftButtonColor or rightButtonColor

Steps to Reproduce / Code Snippets / Screenshots

  1. Set leftButtonColor and rightButtonColor in options
static options(passProps) {
    return {
       topBar: {
        leftButtonColor: "white",
        rightButtonColor: "white",
        title: {
          text: 'Home',
          color: 'white'
        },
        leftButtons: [
          {
            id: 'btnMsgL',
            icon: require('resources/icon_message.png')
          }
        ],
        rightButtons: [
          {
            id: 'btnMsgR',
            icon: require('resources/icon_message.png')
          }
        ],
      }
    }
}
  1. Then change the leftButtonColor and rightButtonColor when triggered.
Navigation.mergeOptions(this.props.componentId,{
      topBar: {
        leftButtonColor: 'black',
        rightButtonColor: 'black',
        title: {
          color: 'black'
        },
      }
    });
  1. The left button and the right button color remains white, while they should be black.
    The title color changed. Which means this code is executed.

Before trigger:
灞忓箷蹇収 2019-05-28 涓嬪崍4 38 28

After trigger:
灞忓箷蹇収 2019-05-28 涓嬪崍4 38 36


Environment

  • React Native Navigation version: 2.20.0
  • React Native version: 0.59.8
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): iPhone X 11.4 Simulator
馃彋 stale

Most helpful comment

still seems to be an issue

All 4 comments

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.

still seems to be an issue

Still an issue in 3.2.0-snapshot.524

Was this page helpful?
0 / 5 - 0 ratings