Skip to content

Hiding the bottom navigation bar on Android creates a gap at the bottom of the view #7199

@daveyjones

Description

@daveyjones

🐛 Bug Report

When the navigation bar is set to visible: false (as described here), it still takes up space. Nothing is able to render in the gap.

Screen Shot 2021-07-21 at 2 32 04 PM

Have you read the Contributing Guidelines on issues?

Yes.

To Reproduce

  1. Clone the demo (link below)
  2. cd navigation-bar-demo
  3. yarn install
  4. react-native run-android

If the blue background doesn't appear on the first run, you may need to run react-native run-android a second time.

Expected behavior

The blue background should extend all the way to the bottom of the view.

Actual Behavior

The blue background stops where the navigation bar would be if it were visible.

Your Environment

  • React Native Navigation version: 7.17.1
  • React Native version: 0.64.2
  • Platform(s) (iOS, Android, or both?): Android
  • Device info (Simulator/Device? OS version? Debug/Release?): Android 11 on Pixel 4 Emulator

Reproducible Demo

https://github.com/dillpixel/navigation-bar-demo

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions