React-native-navigation: [Android] Calling mergeOptions doesn't update bottomTabs

Created on 17 Dec 2018  路  6Comments  路  Source: wix/react-native-navigation

Issue Description

Calling mergeOptions doesn't update tabs

Steps to Reproduce / Code Snippets / Screenshots

  1. Dynamically give a badge to a bottomTab
  2. Doesn't update
  3. Open a modal
  4. Dismiss the modal
  5. BottomTab updated with the badge

Environment

  • React Native Navigation version: 2.2.5
  • Platform(s) (iOS, Android, or both?): Android
馃彋 stale

Most helpful comment

Having this same issue when trying to mergeOptions and set a badge on the bottomTabs. Works as expected for iOS. Were you able to find a solution for this?

All 6 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.

Having this same issue when trying to mergeOptions and set a badge on the bottomTabs. Works as expected for iOS. Were you able to find a solution for this?

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.

Same issue on android (last version)

@Jazqa @Stacyadam found fix just set id in stack.children.component

{
 stack: {
 children: [
     {
      component: {
          id: 'ACCOUNT', <--- here 
          name: SCREENS.account.menu,
    },
   },
  ],
 options: {
   bottomTab: {
    iconInsets,
    selectedIconColor: colors.secondary,
    icon: profileIcon,
 },
},
 }
Was this page helpful?
0 / 5 - 0 ratings