wix / react-native-navigation

A complete native navigation solution for React Native
https://wix.github.io/react-native-navigation/
MIT License
13.04k stars 2.67k forks source link

custom topBar componenet is not working properly #7301

Closed varadig closed 3 years ago

varadig commented 3 years ago

πŸ› Bug Report

(A clear and concise description of what the bug is)

Have you read the Contributing Guidelines on issues?

YES

To Reproduce

(Write your steps here:)

  1. Step 1... If I setup the topBar custom component in the setDefaultOptions it's working well.
  2. Step 2... 2If I set the topBar custom component somwhere else (where I want to use it), it's not visible/rendered/...etc
  3. Step 3...

Expected behavior

Setup custom topbar component per stack

Actual Behavior

The custom topBar component is just visible if I setup in the setDefaultOptions

Your Environment

Reproducible Demo

root: {
                sideMenu: {
                    id: "MAIN",
                    options: {
                        topBar: {visible: true}
                    },
                    center: {
                        bottomTabs: {
                            id: 'BOTTOM_TABS_LAYOUT',
                            options: {
                                topBar: {
                                        background: {
                                            component: {
                                                name: Component.topbarBackground
                                            }
                                        }
                                    },

//.....                     },

Are you willing to resolve this issue by submitting a Pull Request?