Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A property "headerShown" is NOT controlling the screen header visibility #10

Open
fregayeg opened this issue Sep 13, 2022 · 0 comments
Open

Comments

@fregayeg
Copy link

fregayeg commented Sep 13, 2022

Hello!

In my React Native app, I use some complex navigation logic, as follows:

Navigation container
└── Root navigator
        │
        │── Bottom-sheet navigator
                    │
                    ├── Bottom-Tab navigator

As you see, the bottom-sheet navigator is wraped inside Root navigator which is of type native-stack.

Now the issue in code is : When I use Bottom-sheet navigator a screen inside Root navigator, and set headerShow as follows:

<Stack.Screen
  name={"GlobalBottomSheet}
  component={NotificationBottomSheetNav}
  options={{
    headerShown: false
  }}
/>

When I run the app, I notice the existence of a default text "GlobalBottomSheet" as header on top of some screens (screens wrapped inside the bottom-sheet navigator.

Note: When I set the headerTitle=" " , it disappears, but I see that it becomes a space.

What I need is: Please verify the property headerShown and how it works.

@fregayeg fregayeg changed the title A property "headerShown" is NOT controlling the header visibility A property "headerShown" is NOT controlling the screen header visibility Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant